Skip to content

Only create Nitro storage spans when there is a parent span #25803

Open

Description

@andreiborza

The Nitro storage integration creates cache spans (with db.* attributes) when there is no active span. Each of these spans becomes its own root span and has no context.

Pass requiresParentSpan: true to bindTracingChannelToSpan in packages/server-utils/src/integrations/nitro/captureStorageEvents.ts.

Add a test that checks that an operation without an active span creates no span.

Activity

  1. linear-code commented on Oct 28, 2026

    @linear-code
  2. self-assigned this
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions