Skip to content

Commit ff502c0

Browse files
committed
Add empty tags by default
1 parent c27ac1f commit ff502c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sentry_sdk/opentelemetry/span_processor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,9 @@ def _common_span_transaction_attributes_as_json(
294294
}
295295

296296
tags = extract_span_attributes(span, SentrySpanAttribute.TAG)
297-
if tags:
298-
common_json["tags"] = {
299-
tag: safe_str(tag_value) for tag, tag_value in tags.items()
300-
}
297+
common_json["tags"] = {
298+
tag: safe_str(tag_value) for tag, tag_value in tags.items()
299+
}
301300

302301
return common_json
303302

0 commit comments

Comments
 (0)