File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 44
55- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66
7+ ### Important Changes
8+
9+ - ** feat(node-core): Add OTLP integration for node-core/light ([ #19729 ] ( https://github.com/getsentry/sentry-javascript/pull/19729 ) )**
10+
11+ Added ` otlpIntegration ` at ` @sentry/node-core/light/otlp ` for users who manage
12+ their own OpenTelemetry setup and want to send trace data to Sentry without
13+ adopting the full ` @sentry/node ` SDK.
14+
15+ ``` js
16+ import { NodeTracerProvider } from ' @opentelemetry/sdk-trace-node' ;
17+ import * as Sentry from ' @sentry/node-core/light' ;
18+ import { otlpIntegration } from ' @sentry/node-core/light/otlp' ;
19+
20+ const provider = new NodeTracerProvider ();
21+ provider .register ();
22+
23+ Sentry .init ({
24+ dsn: ' __DSN__' ,
25+ integrations: [
26+ otlpIntegration ({
27+ // Export OTel spans to Sentry via OTLP (default: true)
28+ setupOtlpTracesExporter: true ,
29+
30+ // Propagate sentry-trace/baggage headers (default: true)
31+ setupPropagator: true ,
32+
33+ // Capture span.recordException() as Sentry errors (default: false)
34+ captureExceptions: false ,
35+ }),
36+ ],
37+ });
38+ ```
39+
40+ The integration links Sentry errors to OTel traces, exports spans to Sentry via OTLP, and propagates
41+ sentry-trace/baggage headers for distributed tracing.
42+
743## 10.43.0
844
945### Important Changes
You can’t perform that action at this time.
0 commit comments