|
8 | 8 |
|
9 | 9 | ### Important Changes |
10 | 10 |
|
| 11 | +<<<<<<< HEAD |
11 | 12 | - **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) |
12 | 50 |
|
13 | 51 | We added experimental support for React component name annotation in Turbopack builds. When enabled, JSX elements |
14 | 52 | are annotated with `data-sentry-component`, `data-sentry-element`, and `data-sentry-source-file` attributes at build |
|
0 commit comments