Skip to content

Commit 304c86a

Browse files
committed
Add changelog entry for OTLP integration
1 parent 8166766 commit 304c86a

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
@@ -8,7 +8,45 @@
88

99
### Important Changes
1010

11+
<<<<<<< HEAD
1112
- **feat(nextjs): Add Turbopack support for React component name annotation ([#19604](https://github.com/getsentry/sentry-javascript/pull/19604))**
13+
=======
14+
- **feat(node-core): Add OTLP integration for node-core/light ([#19XXX](https://github.com/getsentry/sentry-javascript/pull/19XXX))**
15+
16+
Added `otlpIntegration` at `@sentry/node-core/light/otlp` for users who manage
17+
their own OpenTelemetry setup and want to send trace data to Sentry without
18+
adopting the full `@sentry/node` SDK.
19+
20+
```js
21+
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
22+
import * as Sentry from '@sentry/node-core/light';
23+
import { otlpIntegration } from '@sentry/node-core/light/otlp';
24+
25+
const provider = new NodeTracerProvider();
26+
provider.register();
27+
28+
Sentry.init({
29+
dsn: '__DSN__',
30+
integrations: [
31+
otlpIntegration({
32+
// Export OTel spans to Sentry via OTLP (default: true)
33+
setupOtlpTracesExporter: true,
34+
35+
// Propagate sentry-trace/baggage headers (default: true)
36+
setupPropagator: true,
37+
38+
// Capture span.recordException() as Sentry errors (default: false)
39+
captureExceptions: false,
40+
}),
41+
],
42+
});
43+
```
44+
45+
The integration links Sentry errors to OTel traces, exports spans to Sentry via OTLP, and propagates
46+
sentry-trace/baggage headers for distributed tracing.
47+
48+
- **feat(nextjs): Add Turbopack support for React component name annotation ([#19XXX](https://github.com/getsentry/sentry-javascript/pull/19XXX))**
49+
>>>>>>> 9e9c617cf (Add changelog entry for OTLP integration)
1250
1351
We added experimental support for React component name annotation in Turbopack builds. When enabled, JSX elements
1452
are annotated with `data-sentry-component`, `data-sentry-element`, and `data-sentry-source-file` attributes at build

0 commit comments

Comments
 (0)