Skip to content

Commit 52436f7

Browse files
committed
Add changelog entry for OTLP integration
1 parent a771912 commit 52436f7

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
<<<<<<< HEAD
78
- **feat(nestjs): Instrument `@nestjs/schedule` decorators ([#19735](https://github.com/getsentry/sentry-javascript/pull/19735))**
89

910
Automatically capture exceptions thrown in `@Cron`, `@Interval`, and `@Timeout` decorated methods.
@@ -12,6 +13,43 @@
1213
captured automatically. The exception mechanism type changed from `auto.cron.nestjs.async` to
1314
`auto.function.nestjs.cron`. If you have Sentry queries or alerts that filter on the old mechanism type, update them
1415
accordingly.
16+
=======
17+
### Important Changes
18+
19+
- **feat(node-core): Add OTLP integration for node-core/light ([#19729](https://github.com/getsentry/sentry-javascript/pull/19729))**
20+
21+
Added `otlpIntegration` at `@sentry/node-core/light/otlp` for users who manage
22+
their own OpenTelemetry setup and want to send trace data to Sentry without
23+
adopting the full `@sentry/node` SDK.
24+
25+
```js
26+
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
27+
import * as Sentry from '@sentry/node-core/light';
28+
import { otlpIntegration } from '@sentry/node-core/light/otlp';
29+
30+
const provider = new NodeTracerProvider();
31+
provider.register();
32+
33+
Sentry.init({
34+
dsn: '__DSN__',
35+
integrations: [
36+
otlpIntegration({
37+
// Export OTel spans to Sentry via OTLP (default: true)
38+
setupOtlpTracesExporter: true,
39+
40+
// Propagate sentry-trace/baggage headers (default: true)
41+
setupPropagator: true,
42+
43+
// Capture span.recordException() as Sentry errors (default: false)
44+
captureExceptions: false,
45+
}),
46+
],
47+
});
48+
```
49+
50+
The integration links Sentry errors to OTel traces, exports spans to Sentry via OTLP, and propagates
51+
sentry-trace/baggage headers for distributed tracing.
52+
>>>>>>> c2dc1b5d5 (Add changelog entry for OTLP integration)
1553
1654
## 10.43.0
1755

0 commit comments

Comments
 (0)