Options for the TelemetryPlugin.
serviceName: string
Service name reported to the exporter (required when exporter is configured).
serviceVersion: string
Service version (default: '1.0.0').
exporter: SpanExporterKind
Which exporter to use. Absent = noop mode.
endpoint: string
OTLP endpoint URL (required when exporter: 'otlp').
headers: Record<string, string>
Optional headers sent with OTLP requests.
sampling: SamplingConfig
Sampling configuration.
tracerProviderFactory: () => Promise<TracerHost>
Injectable factory that returns a pre-built TracerHost (test seam).
middleware: boolean
Whether to register the request-span middleware (default: true).
contextPropagation: boolean
Whether real OTel spans become active for nested work (default: true).
contextManagerFactory: () => Promise<{ enable(): unknown; disable(): unknown; }>
Injectable loader for the OTel context manager.
spanProcessor: SpanProcessorKind
Span processor to use ('simple' by default, 'batch' as an option).
instrumentations: InstrumentationsConfig
Auto-instrumentation configuration.
Each key enables one instrumentation on supported runtimes (Node only). Omitting a key leaves that instrumentation off.