Skip to content

Connectum API Reference / @connectum/otel / provider / initProvider

Function: initProvider()

initProvider(options?): void

Defined in: packages/otel/src/provider.ts:261

Initialize the OpenTelemetry provider with explicit options.

Must be called before any telemetry is emitted if custom configuration is needed. Throws if already initialized -- call shutdownProvider first to re-initialize.

Parameters

options?

ProviderOptions

Optional provider configuration overrides

Returns

void

Throws

Error if provider is already initialized