Class AntsPlatformOtel

java.lang.Object
com.ants.platform.otel.AntsPlatformOtel

public final class AntsPlatformOtel extends Object
Entry point for configuring Agentic Ants OpenTelemetry tracing.

Wires an AntsPlatformSpanProcessor into an SdkTracerProvider and registers it as the global OpenTelemetry instance, so the high-level com.ants.platform.tracing.Ants API and any other OTel instrumentation in the process export to the platform.


 AntsPlatformOtel.configure(AntsPlatformOtel.options()
     .publicKey("pk-ap-...")
     .secretKey("sk-ap-..."));   // baseUrl defaults to https://api.agenticants.ai

 // ... instrument with Ants.startObservation(...) / startActiveObservation(...) ...

 AntsPlatformOtel.shutdown();    // flush before the process exits