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