We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4559a85 commit 50e0d19Copy full SHA for 50e0d19
packages/tracing/src/span.ts
@@ -315,6 +315,8 @@ export class Span implements SpanInterface {
315
public getBaggage(): Baggage | undefined {
316
const existingBaggage = this.transaction && this.transaction.metadata.baggage;
317
318
+ // Only add Sentry baggage items to baggage, if baggage does not exist yet or it is still
319
+ // empty and not yet set immutable
320
const finalBaggage =
321
!existingBaggage || (!isBaggageFrozen(existingBaggage) && isSentryBaggageEmpty(existingBaggage))
322
? this._getBaggageWithSentryValues(existingBaggage)
0 commit comments