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.
Scope.root_span
1 parent 4046951 commit d4b9d50Copy full SHA for d4b9d50
sentry_sdk/scope.py
@@ -694,16 +694,9 @@ def fingerprint(self, value):
694
def root_span(self):
695
# type: () -> Optional[Span]
696
"""Return the root span in the scope, if any."""
697
-
698
- # there is no span/transaction on the scope
699
if self._span is None:
700
return None
701
702
- # there is an orphan span on the scope
703
- if self._span.root_span is None:
704
- return None
705
- # there is either a root span (which is its own root
706
- # span) or a non-orphan span on the scope
707
return self._span.root_span
708
709
def set_transaction_name(self, name, source=None):
0 commit comments