@obslysdk/opentelemetry
v0.1.0
Published
OpenTelemetry adapters for deterministic ObslySDK event correlation.
Readme
@obslysdk/opentelemetry
OpenTelemetry integration helpers for ObslySDK.
This package does not initialize OpenTelemetry from ObslySDK.init() and does not provide an auto side-effect mode. Wrap your existing OpenTelemetry fetch/XHR instrumentation configs with the exported helpers.
import {
extendFetchInstrumentationConfig,
extendXmlHttpRequestInstrumentationConfig
} from '@obslysdk/opentelemetry'
registerInstrumentations({
tracerProvider,
instrumentations: [
new FetchInstrumentation(extendFetchInstrumentationConfig(fetchConfig)),
new XMLHttpRequestInstrumentation(
extendXmlHttpRequestInstrumentationConfig(xhrConfig)
)
]
})