Skip to content

SpanBuilder and Baggage #2718

@cijothomas

Description

@cijothomas

Discussed in #2631

Originally posted by mladedav February 7, 2025
I have a SpanBuilder, a parent context with baggage and then I tried calling

let span = builder.start_with_context(&tracer, &parent_cx);

However, the new span did not have the same baggage as the parent context. From what I could see, the context is just parsed for parent ID, trace flags, sampling and such.

Is that by design? I though this was a way to create a child span which as I understand it should have almost the same context (except for the active span).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions