Skip to main content
Version: 2.x

Function: setDefaultInstrumentation()

setDefaultInstrumentation(instrumentation): () => void

Defined in: javascript/src/telemetry/index.ts:124

Select a process-wide Bursar instrumentation implementation.

This does not configure an OpenTelemetry provider or exporter. Call the returned function to restore the previous implementation. A stale restore cannot overwrite a newer registration.

Parameters

instrumentation

Instrumentation | null

Returns

() => void