Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sentry_sdk/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ def iter_headers(self):
yield "tracestate", tracestate

if self.containing_transaction and self.containing_transaction._baggage:
yield "baggage", self.containing_transaction._baggage.serialize()
baggage = self.containing_transaction._baggage.serialize()
if baggage:
yield "baggage", baggage

@classmethod
def from_traceparent(
Expand Down