Skip to content

[skill-drift] update(sentry-nestjs-sdk): document experimentalUseDiagnosticsChannelInjection() - #292

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
skill-drift/nestjs-skill-drift-update-sentry-nestjs-sdk-doc-1784554123
Open

[skill-drift] update(sentry-nestjs-sdk): document experimentalUseDiagnosticsChannelInjection()#292
github-actions[bot] wants to merge 1 commit into
mainfrom
skill-drift/nestjs-skill-drift-update-sentry-nestjs-sdk-doc-1784554123

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Warning

Auto-generated from external SDK content. Review all links and code suggestions before acting on them.

@sentry/nestjs 10.66.0 (released as part of 10.67.0) ships a new experimental public API, Sentry.experimentalUseDiagnosticsChannelInjection(), that opts a NestJS app into a diagnostics-channel-based ("orchestrion") instrumentation path instead of the default OpenTelemetry-based nestIntegration. It must be called before Sentry.init(). Verified by reading the released source at tag 10.67.0:

  • packages/nestjs/src/integrations/nest.tsnestIntegration picks between subscribeToNestChannels() (orchestrion path) and instrumentNest() (OTel path) based on isOrchestrionInjected().
  • packages/node/src/sdk/experimentalUseDiagnosticsChannelInjection.ts — the opt-in function and its JSDoc, re-exported into @sentry/nestjs via export * from '@sentry/node'.
  • The e2e app dev-packages/e2e-tests/test-applications/nestjs-orchestrion confirms the orchestrion path produces the same span tree as the OTel path (only the span origin attribute changes, e.g. auto.http.otel.nestjs -> auto.http.orchestrion.nestjs), and needs no bundler plugin for plain Node apps.

This was completely undocumented in src/references/sdks/nestjs/ (grepped for "orchestrion", zero hits before this change).

Changes made:

  • tracing.md: added an "Experimental: orchestrion (diagnostics-channel) instrumentation" subsection under Architecture, with the opt-in code snippet and a note that it's experimental/not a default recommendation.
  • index.md: added a Version Requirements row for experimentalUseDiagnosticsChannelInjection() (10.66.0).

Other PRs reviewed but not actioned (both merged/released, non-user-facing):

  • #22175 ref(nestjs): extract shared span helpers — pure internal refactor (extracts wrap-handlers.ts/wrap-route.ts/wrap-components.ts shared between the OTel and orchestrion code paths), no public API or behavior change.
  • #22368 ref: Omit redundant captureError: false from tracing-channel callsites — internal cleanup touching orchestrion-subscriber.ts, no public surface change.

Source PRs

…nosticsChannelInjection()

Automated drift-fix run.

Co-Authored-By: Claude (claude-sonnet-5) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants