Connectum API Reference / @connectum/otel / provider / ShutdownProviderOptions
Interface: ShutdownProviderOptions ​
Defined in: provider.ts:82
Options of shutdownProvider.
Properties ​
timeout? ​
optionaltimeout?:number
Defined in: provider.ts:94
Longest time in milliseconds the call waits for the exporters to deliver what they hold. When it passes, the call rejects with an error named TimeoutError. The provider is released either way, and the exporters keep trying in the background until their own timeout (OTEL_EXPORTER_OTLP_TIMEOUT, 10 seconds by default) ends. The OpenTelemetry API global registrations (tracer provider, context manager, propagator, meter and logger provider) are released only when that stop ends, so a provider created before then does not obtain them. Must be above 0 and at most 2147483647 (the longest delay a Node.js timer keeps). Without it the call waits as long as the exporters need.