Skip to content

Commit 5f20150

Browse files
committed
Add changelog entry for OTLP integration
1 parent b608187 commit 5f20150

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

CHANGELOG.md

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

55
### Important Changes
66

7+
- **feat(node-core): Add OTLP integration for node-core/light ([#19XXX](https://github.com/getsentry/sentry-javascript/pull/19XXX))**
8+
9+
Added `otlpIntegration` at `@sentry/node-core/light/otlp` for users who manage
10+
their own OpenTelemetry setup and want to send trace data to Sentry without
11+
adopting the full `@sentry/node` SDK.
12+
13+
```js
14+
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
15+
import * as Sentry from '@sentry/node-core/light';
16+
import { otlpIntegration } from '@sentry/node-core/light/otlp';
17+
18+
const provider = new NodeTracerProvider();
19+
provider.register();
20+
21+
Sentry.init({
22+
dsn: '__DSN__',
23+
integrations: [
24+
otlpIntegration({
25+
// Export OTel spans to Sentry via OTLP (default: true)
26+
setupOtlpTracesExporter: true,
27+
28+
// Propagate sentry-trace/baggage headers (default: true)
29+
setupPropagator: true,
30+
31+
// Capture span.recordException() as Sentry errors (default: false)
32+
captureExceptions: false,
33+
}),
34+
],
35+
});
36+
```
37+
38+
The integration links Sentry errors to OTel traces, exports spans to Sentry via OTLP, and propagates
39+
sentry-trace/baggage headers for distributed tracing.
40+
741
- **feat(nextjs): Add Turbopack support for React component name annotation ([#19XXX](https://github.com/getsentry/sentry-javascript/pull/19XXX))**
842

943
We added experimental support for React component name annotation in Turbopack builds. When enabled, JSX elements
@@ -3763,3 +3797,7 @@ A full list of changes in the `5.x` release of the SDK can be found in the [5.x
37633797
## 4.x
37643798
37653799
A full list of changes in the `4.x` release of the SDK can be found in the [4.x Changelog](./docs/changelog/v4.md).
3800+
3801+
```
3802+
3803+
```

0 commit comments

Comments
 (0)