GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(nuxt): Stop double-instrumenting storage on Nitro 3 by mydea · Pull Request #24869 · getsentry/sentry-javascript

Conversation

@mydea

@mydea mydea commented Sep 30, 2026

Copy link
Copy Markdown
Member

Stacked on #24861.

On Nitro 3, @sentry/server-utils' nitroIntegration — auto-injected via @sentry/node's default integrations (see the parent PR) — instruments unstorage through its native tracing channels. Nuxt's own storage plugin instruments the same operations manually, so on Nitro 3 every cache operation was recorded twice: once as auto.cache.nitro and once as auto.cache.nuxt.

This registers the Nuxt storage plugin only on legacy Nitro (v2) (which has no native tracing channels), and deletes the now-redundant Nitro 3 plugin. The shared instrumentStorage util stays for the legacy path — Nuxt's implementation and the server-utils captureStorageEvents it now defers to are near-identical siblings.

The first commit adds a failing nuxt-5 (Nitro 3) e2e test that asserts each cache operation is instrumented exactly once; the second commit removes the duplication and updates the existing auto.cache.nuxt assertions to the auto.cache.nitro spans.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sentry[bot] reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@mydea
mydea added this pull request to stack #24871 September 30, 2026 08:41
cursor[bot]
cursor Bot reviewed Sep 30, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dev-packages/e2e-tests/test-applications/nuxt-5/tests/cache.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Sep 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 29.24 kB - -
@sentry/browser - with treeshaking flags 27.5 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.4 kB - -
@sentry/browser (incl. Tracing) 51.15 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 51.18 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.18 kB - -
@sentry/browser (incl. Tracing, Replay) 90.76 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 79.86 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 95.46 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 108.41 kB - -
@sentry/browser (incl. Feedback) 46.76 kB - -
@sentry/browser (incl. sendFeedback) 34.3 kB - -
@sentry/browser (incl. FeedbackAsync) 39.41 kB - -
@sentry/browser (incl. Metrics) 30.25 kB - -
@sentry/browser (incl. Logs) 30.53 kB - -
@sentry/browser (incl. Metrics & Logs) 31.2 kB - -
@sentry/react 31.08 kB - -
@sentry/react (incl. Tracing) 53.54 kB - -
@sentry/vue 36.78 kB - -
@sentry/vue (incl. Tracing) 53.74 kB - -
@sentry/svelte 29.26 kB - -
CDN Bundle 31.05 kB - -
CDN Bundle (incl. Tracing) 51.8 kB - -
CDN Bundle (incl. Logs, Metrics) 33.31 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 53.77 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.02 kB - -
CDN Bundle (incl. Tracing, Replay) 89.39 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 91.36 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 95.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 97.53 kB - -
CDN Bundle - uncompressed 91.7 kB - -
CDN Bundle (incl. Tracing) - uncompressed 154.08 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 98.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 160.04 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 227.84 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 273.81 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 279.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.51 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 293.44 kB - -
@sentry/nextjs (client) 55.78 kB - -
@sentry/sveltekit (client) 51.6 kB - -
@sentry/core/server 39.99 kB - -
@sentry/core/browser 13.63 kB - -
@sentry/node 145.69 kB +1.16% +1.67 kB 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.01 kB +0.04% +30 B 🔺
@sentry/node - without tracing 93.18 kB +0.31% +284 B 🔺
@sentry/node - without channel injection 124.08 kB +1.38% +1.69 kB 🔺
@sentry/aws-serverless 101.46 kB +0.28% +282 B 🔺
@sentry/cloudflare (withSentry) - minified 206.69 kB - -
@sentry/cloudflare (withSentry) 514.13 kB - -

View base workflow run

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mydea
mydea force-pushed the feat/nitro-move-to-server-utils branch from 050cf3f to 5382539 Compare September 30, 2026 11:01
@mydea
mydea force-pushed the feat/nuxt-strip-duplicate-nitro-instrumentation branch from 9c52353 to 302eaf2 Compare September 30, 2026 11:01
cursor[bot]
cursor Bot reviewed Sep 30, 2026
View reviewed changes

@cursor cursor Bot left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/nuxt/src/vite/storageConfig.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread dev-packages/e2e-tests/test-applications/nuxt-5/tests/cache.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@mydea
mydea force-pushed the feat/nuxt-strip-duplicate-nitro-instrumentation branch from 302eaf2 to 9891641 Compare September 30, 2026 11:06
@mydea mydea mentioned this pull request Sep 30, 2026
fix(nuxt): Remove redundant Nitro 3 route-name plugin #24880
Closed
@mydea
mydea force-pushed the feat/nuxt-strip-duplicate-nitro-instrumentation branch from 9891641 to f882315 Compare September 30, 2026 11:32
cursor[bot]
cursor Bot reviewed Sep 30, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 3 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f882315. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread dev-packages/e2e-tests/test-applications/nuxt-5/tests/cache.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@mydea
mydea force-pushed the feat/nitro-move-to-server-utils branch from e8a310d to 810fa6c Compare September 30, 2026 12:26
@mydea
mydea force-pushed the feat/nuxt-strip-duplicate-nitro-instrumentation branch from 874455e to 9cfef61 Compare September 30, 2026 12:26
@mydea
mydea marked this pull request as ready for review September 30, 2026 12:30
@mydea
mydea requested a review from a team as a code owner September 30, 2026 12:30
@mydea
mydea requested review from nicohrubec and s1gr1d and removed request for a team September 30, 2026 12:30
@mydea
mydea marked this pull request as draft September 30, 2026 14:06
mydea and others added 6 commits September 30, 2026 16:06
@mydea @claude
test(nuxt): Add failing test for duplicate cache instrumentation on N…
a081b93
…itro 3

On Nitro 3, `nitroIntegration` (auto-injected via `@sentry/node` defaults)
instruments unstorage through its native tracing channels, while the Nuxt
storage plugin instruments the same operations manually — so each cache
operation is recorded twice (`auto.cache.nitro` + `auto.cache.nuxt`).

This test asserts the target state (instrumented once, by nitroIntegration) and
fails until the duplicate Nuxt storage instrumentation is removed.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mydea @claude
fix(nuxt): Stop double-instrumenting storage on Nitro 3
c755d19
On Nitro 3, `@sentry/server-utils`' `nitroIntegration` (auto-injected via
`@sentry/node`'s default integrations) already instruments unstorage through its
native tracing channels. Nuxt's own storage plugin instrumented the same
operations manually, so every cache operation was recorded twice
(`auto.cache.nitro` + `auto.cache.nuxt`).

Register the Nuxt storage plugin only on legacy Nitro (v2), which has no native
channels, and delete the now-unused Nitro 3 plugin. The shared
`instrumentStorage` util stays for the legacy path. Updates the nuxt-5 e2e
assertions to the `auto.cache.nitro` spans and makes the duplicate-detection
test pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mydea @claude
test(nuxt): Remove the duplicate-detection regression test
121abed
It asserted the absence of `auto.cache.nuxt` spans, but that origin no longer
exists once the Nuxt storage plugin is removed on Nitro 3. The existing cache
tests already cover the `auto.cache.nitro` spans.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mydea @claude
fix(nuxt): Exempt auto.cache.nitro transactions from the low-quality …
adad6e4
…filter

After the storage strip, Nitro 3 cache spans come from `nitroIntegration` with
origin `auto.cache.nitro` instead of `auto.cache.nuxt`. `isCacheEvent` only
recognised the latter, so a standalone cache transaction named after its
operation (e.g. `cache.get`) was treated as a file request (the `.get`
extension) and dropped by `lowQualityTransactionsFilter`. Recognise both
origins, and add coverage.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mydea @claude
test(nuxt): Restore the duplicate-cache-spans regression test
686d825
Reverts the earlier removal. The `auto.cache.nuxt` code path still exists for
legacy Nitro 2, so asserting that Nitro 3 records each cache operation exactly
once (only `auto.cache.nitro`, never `auto.cache.nuxt`) remains a useful guard.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mydea @claude
feat(nuxt): Adopt the shared nitroIntegration on Nitro 3
b515709
Enable Nitro's `tracingChannel` on Nitro 3 so the srvx/h3/unstorage tracing
channels fire, and add `nitroIntegration` to the Nuxt server SDK explicitly (via
`addIntegration` after init, so `initNode` still resolves env-based tracing).
Together with removing Nuxt's own storage instrumentation on Nitro 3, this makes
Nuxt use the shared `@sentry/server-utils` Nitro instrumentation for HTTP and
cache spans instead of its bespoke copy.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@mydea
mydea force-pushed the feat/nuxt-strip-duplicate-nitro-instrumentation branch from 9cfef61 to b515709 Compare September 30, 2026 14:13
@mydea

mydea commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

actually, this fails on nuxt 5, so closing this pr

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mydea mydea closed this Sep 30, 2026
@mydea mydea mentioned this pull request Sep 30, 2026
Nuxt: share the server-utils nitroIntegration for cache/storage (attempted & reverted — details + how to resume) #24899
Open
@mydea
mydea removed this pull request from stack #24871 October 1, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments
@nicohrubec nicohrubec Awaiting requested review from nicohrubec nicohrubec was automatically assigned from getsentry/team-javascript-sdks-framework
@s1gr1d s1gr1d Awaiting requested review from s1gr1d s1gr1d was automatically assigned from getsentry/team-javascript-sdks-framework

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@mydea
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.