|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott |
6 | 6 |
|
| 7 | +<<<<<<< HEAD |
7 | 8 | - **feat(nestjs): Instrument `@nestjs/schedule` decorators ([#19735](https://github.com/getsentry/sentry-javascript/pull/19735))** |
8 | 9 |
|
9 | 10 | Automatically capture exceptions thrown in `@Cron`, `@Interval`, and `@Timeout` decorated methods. |
|
12 | 13 | captured automatically. The exception mechanism type changed from `auto.cron.nestjs.async` to |
13 | 14 | `auto.function.nestjs.cron`. If you have Sentry queries or alerts that filter on the old mechanism type, update them |
14 | 15 | accordingly. |
| 16 | +======= |
| 17 | +### Important Changes |
| 18 | + |
| 19 | +- **feat(node-core): Add OTLP integration for node-core/light ([#19729](https://github.com/getsentry/sentry-javascript/pull/19729))** |
| 20 | + |
| 21 | + Added `otlpIntegration` at `@sentry/node-core/light/otlp` for users who manage |
| 22 | + their own OpenTelemetry setup and want to send trace data to Sentry without |
| 23 | + adopting the full `@sentry/node` SDK. |
| 24 | + |
| 25 | + ```js |
| 26 | + import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'; |
| 27 | + import * as Sentry from '@sentry/node-core/light'; |
| 28 | + import { otlpIntegration } from '@sentry/node-core/light/otlp'; |
| 29 | + |
| 30 | + const provider = new NodeTracerProvider(); |
| 31 | + provider.register(); |
| 32 | + |
| 33 | + Sentry.init({ |
| 34 | + dsn: '__DSN__', |
| 35 | + integrations: [ |
| 36 | + otlpIntegration({ |
| 37 | + // Export OTel spans to Sentry via OTLP (default: true) |
| 38 | + setupOtlpTracesExporter: true, |
| 39 | + |
| 40 | + // Propagate sentry-trace/baggage headers (default: true) |
| 41 | + setupPropagator: true, |
| 42 | + |
| 43 | + // Capture span.recordException() as Sentry errors (default: false) |
| 44 | + captureExceptions: false, |
| 45 | + }), |
| 46 | + ], |
| 47 | + }); |
| 48 | + ``` |
| 49 | + |
| 50 | + The integration links Sentry errors to OTel traces, exports spans to Sentry via OTLP, and propagates |
| 51 | + sentry-trace/baggage headers for distributed tracing. |
| 52 | +>>>>>>> c2dc1b5d5 (Add changelog entry for OTLP integration) |
15 | 53 |
|
16 | 54 | ## 10.43.0 |
17 | 55 |
|
|
0 commit comments