Returns a new Context with the given attributes merged into the active baggage. Use this
(paired with context.with(...)) to make values visible to the BaggageSpanProcessor so
they are attached to every downstream span — including spans created by libraries that
bypass withSpan (e.g. Kysely) and spans created in queue workers (via the W3C baggage
propagator wired up in register.ts).
Existing baggage entries are preserved; entries with null/undefined values are skipped.
Values are coerced to strings, as required by the W3C baggage spec.
Returns a new
Contextwith the given attributes merged into the active baggage. Use this (paired withcontext.with(...)) to make values visible to theBaggageSpanProcessorso they are attached to every downstream span — including spans created by libraries that bypasswithSpan(e.g. Kysely) and spans created in queue workers (via the W3C baggage propagator wired up inregister.ts).Existing baggage entries are preserved; entries with
null/undefinedvalues are skipped. Values are coerced to strings, as required by the W3C baggage spec.