Skip to content

Propagated context is discarded for random trace-ids #8264

@cleverchuk

Description

@cleverchuk

Describe the bug
Pr #8012 drops propagated context when random trace id generator is used.

Steps to reproduce
added a test that fails without the fix.

What did you expect to see?
I expected access to data extracted by a propagator in the sampler#shouldSample when it's added to the context.

What did you see instead?
Null value for propagated keys.

What version and what artifacts are you using?
Artifacts: opentelemetry-sdk
Version: v1.60.1

Environment
Compiler: Corretto-25.0.2.10.1
OS: Darwin 24.6.0
Runtime (if different from JDK above): (e.g., "Oracle JRE 8u251")
OS (if different from OS compiled on): (e.g., "Windows Server 2019")

Additional context
Add any other context about the problem here.

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions