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.
1 parent 386e9ac commit 1ed7175Copy full SHA for 1ed7175
sentry_sdk/tracing.py
@@ -1582,6 +1582,9 @@ def is_success(self):
1582
1583
def finish(self, end_timestamp=None):
1584
# type: (Optional[Union[float, datetime]]) -> Optional[str]
1585
+ if hasattr(self._otel_span, "status") and self._otel_span.status.status_code == StatusCode.UNSET:
1586
+ self.set_status(SPANSTATUS.OK)
1587
+
1588
if end_timestamp is not None:
1589
from sentry_sdk.integrations.opentelemetry.utils import (
1590
convert_to_otel_timestamp,
0 commit comments