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+
79- ** feat(nestjs): Instrument ` @nestjs/schedule ` decorators ([ #19735 ] ( https://github.com/getsentry/sentry-javascript/pull/19735 ) )**
810
911 Automatically capture exceptions thrown in ` @Cron ` , ` @Interval ` , and ` @Timeout ` decorated methods.
1315 ` auto.function.nestjs.cron ` . If you have Sentry queries or alerts that filter on the old mechanism type, update them
1416 accordingly.
1517
18+ - ** feat(node-core): Add OTLP integration for node-core/light ([ #19729 ] ( https://github.com/getsentry/sentry-javascript/pull/19729 ) )**
19+
20+ Added ` otlpIntegration ` at ` @sentry/node-core/light/otlp ` for users who manage
21+ their own OpenTelemetry setup and want to send trace data to Sentry without
22+ adopting the full ` @sentry/node ` SDK.
23+
24+ ``` js
25+ import { NodeTracerProvider } from ' @opentelemetry/sdk-trace-node' ;
26+ import * as Sentry from ' @sentry/node-core/light' ;
27+ import { otlpIntegration } from ' @sentry/node-core/light/otlp' ;
28+
29+ const provider = new NodeTracerProvider ();
30+ provider .register ();
31+
32+ Sentry .init ({
33+ dsn: ' __DSN__' ,
34+ integrations: [
35+ otlpIntegration ({
36+ // Export OTel spans to Sentry via OTLP (default: true)
37+ setupOtlpTracesExporter: true ,
38+
39+ // Propagate sentry-trace/baggage headers (default: true)
40+ setupPropagator: true ,
41+
42+ // Capture span.recordException() as Sentry errors (default: false)
43+ captureExceptions: false ,
44+ }),
45+ ],
46+ });
47+ ```
48+
49+ The integration links Sentry errors to OTel traces, exports spans to Sentry via OTLP, and propagates
50+ sentry-trace/baggage headers for distributed tracing.
51+
1652## 10.43.0
1753
1854### Important Changes
You can’t perform that action at this time.
0 commit comments