Skip to content

Commit 0db50ad

Browse files
committed
.
1 parent 92c27b4 commit 0db50ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/opentelemetry/span_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def _span_to_json(self, span):
289289
if parent_span_id:
290290
span_json["parent_span_id"] = parent_span_id
291291

292-
if getattr(span, "attributes", {}):
292+
if getattr(span, "attributes", {}) or {}:
293293
span_json["data"] = {}
294294
for key, value in span.attributes.items():
295295
if not key.startswith("_"):

0 commit comments

Comments
 (0)