Skip to content

fix(nuxt): Only create database and storage spans when there is a parent span - #25859

Closed
lazerg wants to merge 1 commit into
getsentry:developfrom
lazerg:fix/nuxt-only-if-parent
Closed

lazerg wants to merge 1 commit into
getsentry:developfrom
lazerg:fix/nuxt-only-if-parent

Conversation

@lazerg

@lazerg lazerg commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Why: Nuxt database and storage calls made outside any active span each became their own root span with no context. Both span option builders now pass onlyIfParent: true, like the other db integrations.

How to review: The fix is one line in instrumentDatabase.ts and one in instrumentStorage.ts. The new unit tests run one call outside and one inside a parent span and check that only the one inside creates a span.

Closes #25805

…ent span

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the external PR from an external contributor label Oct 29, 2026
@lazerg
lazerg marked this pull request as ready for review October 29, 2026 07:27
@lazerg
lazerg requested a review from a team as a code owner October 29, 2026 07:27
@lazerg
lazerg requested review from chargome and nicohrubec and removed request for a team October 29, 2026 07:27
@nicohrubec

Copy link
Copy Markdown
Member

after some more internal discussion on the approach for this I'll close this down as superseded by #25879

@nicohrubec nicohrubec closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external PR from an external contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only create Nuxt database and storage spans when there is a parent span

2 participants