Skip to content

Only create supabase db spans when there is a parent span #25806

Closed

Description

@andreiborza

The supabase integration creates db spans when there is no active span. Each of these spans becomes its own root span and has no context.

Pass onlyIfParent: true to the two startSpanManual calls in packages/core/src/integrations/supabase.ts.

In the browser, queries after the pageload or navigation span ends will then create no span.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSpansjavascriptPull requests that update javascript code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions