Connectum API Reference / @connectum/otel / provider / initProvider
Function: initProvider() ​
initProvider(
options?):void
Defined in: provider.ts:593
Initialize the OpenTelemetry provider with explicit options.
Optional -- getProvider, getMeter, getTracer, and getLogger auto-initialize with environment-based defaults. Idempotent: subsequent calls are no-ops if provider is already active. Call shutdownProvider first to re-initialize with new options.
Parameters ​
options? ​
Optional provider configuration overrides
Returns ​
void
Throws ​
TypeError when options.settings names a signal or an exporter that does not exist. The check runs before anything is created, also when a provider already exists and the options would otherwise be ignored.