Skip to content

Auto-forked startSpan broke retroactive tag addition #10122

Closed as not planned
Closed as not planned
@jonathroth

Description

@jonathroth

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

7.92.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Init sentry SDK with limited info
  2. Call startSpan()
  3. Call startSpan() again within the first span's callback
  4. Within the nested child span, call setTag()

Expected Result

Until now, since a scope wouldn't be created, the setTag would simply apply to the global scope and all events/traces would have those tags

Actual Result

Tags only apply to the child span, since the scope was auto-forked, so the tags were added to the child scope
Relevant change should be this PR - #9955

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: browserIssues related to the Sentry Browser SDK

    Type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions