OpenTelemetryConfigAPI
Properties
Indicates whether OpenTelemetry resources should be shut down when the agent closes.
The service name reported in resource attributes.
The service namespace reported in resource attributes, or null if not set.
The service version reported in resource attributes.
Functions
Adds resource attributes reported alongside every exported span.
Installs a SpanAdapter that post-processes every GenAI span. Replaces any previously installed adapter.
Registers exporter wrapped in a batchSpanProcessor - the OTel-recommended default for production deployments. Spans are buffered and flushed on a worker so the agent never blocks on network I/O at the span end.
Registers a SpanProcessor produced by a factory invoked inside the SDK's TraceExportConfigDsl scope. Use this when the convenience addSpanExporter (which always wraps in batchSpanProcessor) doesn't fit - e.g., custom batching parameters, custom processor implementations, or a compositeSpanProcessor over several inner processors.
Sets the service information reported in resource attributes.
Toggles whether OpenTelemetryPlatform.shutdown runs when the agent closes. See isShutdownOnAgentClose.
Toggles verbose telemetry capture. See isVerbose.