GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(nuxt): Stop double-instrumenting storage on Nitro 3 by mydea · Pull Request #24869 · getsentry/sentry-javascript Conversation
Member
Stacked on #24861. On Nitro 3, 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 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 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
size-limit report 📦
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
050cf3f to
5382539
Compare
9c52353 to
302eaf2
Compare
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
302eaf2 to
9891641
Compare
9891641 to
f882315
Compare
There was a problem 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).
❌ 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
e8a310d to
810fa6c
Compare
874455e to
9cfef61
Compare
…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]>
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]>
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]>
…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]>
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]>
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]>
9cfef61 to
b515709
Compare
|
actually, this fails on nuxt 5, so closing this pr |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.