You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pull request "Ab/otlp integration" was created by @andreiborza but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.
Added otlpIntegration at @sentry/node-core/light/otlp for users who manage their own OpenTelemetry setup and want to send trace data to Sentry without adopting the full @sentry/node SDK.
import{NodeTracerProvider}from'@opentelemetry/sdk-trace-node';import*asSentryfrom'@sentry/node-core/light';import{otlpIntegration}from'@sentry/node-core/light/otlp';constprovider=newNodeTracerProvider();provider.register();Sentry.init({dsn: '__DSN__',integrations: [otlpIntegration({// Export OTel spans to Sentry via OTLP (default: true)setupOtlpTracesExporter: true,// Propagate sentry-trace/baggage headers (default: true)setupPropagator: true,// Capture span.recordException() as Sentry errors (default: false)captureExceptions: false,}),],});
Split up for easier reviewing:
functionality to register a function to get the propagation context from OTel: 863136d
Note
The pull request "Ab/otlp integration" was created by @andreiborza but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.
Added
otlpIntegrationat@sentry/node-core/light/otlpfor users who manage their own OpenTelemetry setup and want to send trace data to Sentry without adopting the full@sentry/nodeSDK.Split up for easier reviewing: