Skip to content

Commit

Permalink
Some explaination
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Dec 17, 2024
1 parent dc9e4a3 commit 77338bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sentry_sdk/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,12 @@ def set_attribute(self, key, value):
@property
def status(self):
# type: () -> Optional[str]
"""
Return the Sentry `SPANSTATUS` corresponding to the underlying OTel status.
Because differences in possible values in OTel `StatusCode` and
Sentry `SPANSTATUS` it can not be guaranteed that the status
set in `set_status()` will be the same as the one returned here.
"""
if not hasattr(self._otel_span, "status"):
return None

Expand Down

0 comments on commit 77338bb

Please sign in to comment.