Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/references/sdks/nestjs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ If a frontend exists without Sentry, suggest the matching skill:
| `SentryGlobalFilter` (unified) | 8.40.0 |
| `Sentry.logger` API (`enableLogs`) | 9.41.0 |
| `profileSessionSampleRate` | 10.27.0 |
| `experimentalUseDiagnosticsChannelInjection()` (experimental orchestrion instrumentation) | 10.66.0 |
| Node.js requirement | ≥ 18 |
| Node.js for ESM `--import` | ≥ 18.19.0 |
| NestJS compatibility | 8.x – 11.x |
26 changes: 26 additions & 0 deletions src/references/sdks/nestjs/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,32 @@

Sentry is the OpenTelemetry provider — any OTel instrumentation automatically flows into Sentry.

### Experimental: orchestrion (diagnostics-channel) instrumentation

SDK ≥ 10.66.0 ships an experimental alternative to the OTel-based `nestIntegration`: a
diagnostics-channel-based instrumentation path ("orchestrion"). Opt in by calling
`Sentry.experimentalUseDiagnosticsChannelInjection()` **before** `Sentry.init()`:

```typescript
// instrument.ts
import * as Sentry from "@sentry/nestjs";

Sentry.experimentalUseDiagnosticsChannelInjection();

Sentry.init({
dsn: "YOUR_DSN",
tracesSampleRate: 1.0,
});
```

- Produces the same span tree as the OTel path (`app_creation`, `request_context`, `handler`,
`middleware.nestjs[.guard|.pipe|.interceptor|.exception_filter]`, `@OnEvent`/`@Cron` spans) —
only the span `origin` changes (e.g. `auto.http.otel.nestjs` → `auto.http.orchestrion.nestjs`).
- No bundler/build step required for plain Node apps; the function installs Node diagnostics-channel
module hooks at runtime.
- **Experimental** — may change or be removed in any release. Do not recommend by default; only
mention if a user is explicitly investigating orchestrion/diagnostics-channel instrumentation.

## Code Examples

### Enable tracing
Expand Down