Skip to content

Commit 378e7ed

Browse files
committed
Add changelog entry for OTLP integration
1 parent 1fcd85e commit 378e7ed

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

CHANGELOG.md

Lines changed: 42 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+
<<<<<<< HEAD
8+
79
- **feat(node): Expose `headersToSpanAttributes` option on `nativeNodeFetchIntegration()` ([#19770](https://github.com/getsentry/sentry-javascript/pull/19770))**
810

911
Response headers like `http.response.header.content-length` were previously captured automatically on outgoing
@@ -23,6 +25,12 @@
2325
});
2426
```
2527

28+
=======
29+
30+
### Important Changes
31+
32+
> > > > > > > 9acb433d55 (Add changelog entry for OTLP integration)
33+
2634
- **feat(nestjs): Instrument `@nestjs/schedule` decorators ([#19735](https://github.com/getsentry/sentry-javascript/pull/19735))**
2735

2836
Automatically capture exceptions thrown in `@Cron`, `@Interval`, and `@Timeout` decorated methods.
@@ -38,6 +46,40 @@
3846
changes. We cannot yet guarantee full support for server-islands, due to a [bug in Astro v6](https://github.com/withastro/astro/issues/15753)
3947
but we'll follow up on this once the bug is fixed.
4048

49+
- **feat(node-core): Add OTLP integration for node-core/light ([#19729](https://github.com/getsentry/sentry-javascript/pull/19729))**
50+
51+
Added `otlpIntegration` at `@sentry/node-core/light/otlp` for users who manage
52+
their own OpenTelemetry setup and want to send trace data to Sentry without
53+
adopting the full `@sentry/node` SDK.
54+
55+
```js
56+
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
57+
import * as Sentry from '@sentry/node-core/light';
58+
import { otlpIntegration } from '@sentry/node-core/light/otlp';
59+
60+
const provider = new NodeTracerProvider();
61+
provider.register();
62+
63+
Sentry.init({
64+
dsn: '__DSN__',
65+
integrations: [
66+
otlpIntegration({
67+
// Export OTel spans to Sentry via OTLP (default: true)
68+
setupOtlpTracesExporter: true,
69+
70+
// Propagate sentry-trace/baggage headers (default: true)
71+
setupPropagator: true,
72+
73+
// Capture span.recordException() as Sentry errors (default: false)
74+
captureExceptions: false,
75+
}),
76+
],
77+
});
78+
```
79+
80+
The integration links Sentry errors to OTel traces, exports spans to Sentry via OTLP, and propagates
81+
sentry-trace/baggage headers for distributed tracing.
82+
4183
## 10.43.0
4284

4385
### Important Changes

0 commit comments

Comments
 (0)