Skip to content

Commit 77338bb

Browse files
committed
Some explaination
1 parent dc9e4a3 commit 77338bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sentry_sdk/tracing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,6 +1586,12 @@ def set_attribute(self, key, value):
15861586
@property
15871587
def status(self):
15881588
# type: () -> Optional[str]
1589+
"""
1590+
Return the Sentry `SPANSTATUS` corresponding to the underlying OTel status.
1591+
Because differences in possible values in OTel `StatusCode` and
1592+
Sentry `SPANSTATUS` it can not be guaranteed that the status
1593+
set in `set_status()` will be the same as the one returned here.
1594+
"""
15891595
if not hasattr(self._otel_span, "status"):
15901596
return None
15911597

0 commit comments

Comments
 (0)