Skip to content

Isolation scope is never forked for root spans if propagator is not invoked #4430

@adinauer

Description

@adinauer

Integration

sentry-opentelemetry-agent

Java Version

any

Version

8

Steps to Reproduce

Create a root span without having it go through Propagator.extract using OpenTelemetry API.

TODO test if Sentry API (via OtelSpanFactory is affected) but likely that's not the case.

Expected Result

Isolation scope should be forked.

Actual Result

Isolation scope of root scopes (from SDK init) is used instead. This causes information set while handling request A to bleed into request B etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions