|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott |
6 | 6 |
|
| 7 | +<<<<<<< HEAD |
| 8 | + |
7 | 9 | - **feat(node): Expose `headersToSpanAttributes` option on `nativeNodeFetchIntegration()` ([#19770](https://github.com/getsentry/sentry-javascript/pull/19770))** |
8 | 10 |
|
9 | 11 | Response headers like `http.response.header.content-length` were previously captured automatically on outgoing |
|
23 | 25 | }); |
24 | 26 | ``` |
25 | 27 |
|
| 28 | + ======= |
| 29 | + |
| 30 | +### Important Changes |
| 31 | + |
| 32 | +> > > > > > > 9acb433d55 (Add changelog entry for OTLP integration) |
| 33 | +
|
26 | 34 | - **feat(nestjs): Instrument `@nestjs/schedule` decorators ([#19735](https://github.com/getsentry/sentry-javascript/pull/19735))** |
27 | 35 |
|
28 | 36 | Automatically capture exceptions thrown in `@Cron`, `@Interval`, and `@Timeout` decorated methods. |
|
38 | 46 | changes. We cannot yet guarantee full support for server-islands, due to a [bug in Astro v6](https://github.com/withastro/astro/issues/15753) |
39 | 47 | but we'll follow up on this once the bug is fixed. |
40 | 48 |
|
| 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 | + |
41 | 83 | ## 10.43.0 |
42 | 84 |
|
43 | 85 | ### Important Changes |
|
0 commit comments