Skip to content

feat(nuxt): Add _experimental.useDiagnosticsChannelInjection#22323

Open
s1gr1d wants to merge 1 commit into
developfrom
sig/orchestrion-nuxt
Open

feat(nuxt): Add _experimental.useDiagnosticsChannelInjection#22323
s1gr1d wants to merge 1 commit into
developfrom
sig/orchestrion-nuxt

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Jul 16, 2026

Copy link
Copy Markdown
Member

Adds the useDiagnosticsChannelInjection option and updates the E2E test.

When using _experimental.useDiagnosticsChannelInjection, users also need to do those steps:

  1. Call Sentry.experimentalUseDiagnosticsChannelInjection() just before Sentry.init()
  2. Remove --import ./.output/server/sentry.server.config.mjs from your startscript
  3. Add sentry.autoInjectServerSentry: 'top-level-import' in nuxt.config.ts so Sentry's server configuration is automatically imported

@s1gr1d
s1gr1d requested a review from a team as a code owner July 16, 2026 11:58
@s1gr1d
s1gr1d requested review from JPeer264, chargome, mydea and nicohrubec and removed request for a team July 16, 2026 11:58
"@sentry/node": "10.66.0",
"@sentry/node-core": "10.66.0",
"@sentry/rollup-plugin": "^5.3.0",
"@sentry/server-utils": "10.65.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The @sentry/server-utils package is pinned to 10.65.0 in packages/nuxt/package.json, while new code depends on APIs from version 10.66.0, causing a build failure.
Severity: HIGH

Suggested Fix

In packages/nuxt/package.json, update the version of @sentry/server-utils from 10.65.0 to 10.66.0 to align with other Sentry packages and provide the necessary APIs for the new experimental feature.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: packages/nuxt/package.json#L63

Potential issue: The `packages/nuxt/package.json` file incorrectly pins the
`@sentry/server-utils` dependency to version `10.65.0`, while all other Sentry packages
in the same file are at `10.66.0`. New experimental code for diagnostics channel
injection, enabled via `_experimental.useDiagnosticsChannelInjection`, imports APIs like
`INSTRUMENTED_MODULE_NAMES` from `@sentry/server-utils`. These APIs were introduced in
version `10.66.0`. Due to the version mismatch, attempting to use this new feature will
cause a build failure because the required exports are not present in version `10.65.0`.

Also affects:

  • packages/nuxt/src/vite/orchestrion.ts:1~3

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant