|
4 | 4 |
|
5 | 5 | ### Important Changes |
6 | 6 |
|
| 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 | + |
7 | 41 | - **feat(nextjs): Add Turbopack support for React component name annotation ([#19XXX](https://github.com/getsentry/sentry-javascript/pull/19XXX))** |
8 | 42 |
|
9 | 43 | We added experimental support for React component name annotation in Turbopack builds. When enabled, JSX elements |
|
27 | 61 | }); |
28 | 62 | ``` |
29 | 63 |
|
| 64 | +```` |
| 65 | +
|
30 | 66 | ### Other Changes |
31 | 67 |
|
32 | 68 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott |
@@ -3763,3 +3799,4 @@ A full list of changes in the `5.x` release of the SDK can be found in the [5.x |
3763 | 3799 | ## 4.x |
3764 | 3800 |
|
3765 | 3801 | 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). |
| 3802 | +```` |
0 commit comments