Skip to content

Commit 6c39b60

Browse files
Update sentry_sdk/integrations/opentelemetry/potel_span_processor.py
Co-authored-by: Neel Shah <[email protected]>
1 parent 0f73a8e commit 6c39b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/opentelemetry/potel_span_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def on_end(self, span):
6262
if is_sentry_span(span):
6363
return
6464

65-
is_root_span = not (span.parent and not span.parent.is_remote)
65+
is_root_span = not span.parent or span.parent.is_remote
6666
if is_root_span:
6767
# if have a root span ending, we build a transaction and send it
6868
self._flush_root_span(span)

0 commit comments

Comments
 (0)