Skip to content

Commit 2b22df3

Browse files
committed
Add changelog entry for OTLP integration
1 parent a771912 commit 2b22df3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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.
@@ -13,6 +15,40 @@
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

0 commit comments

Comments
 (0)