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 c65f6c5 commit d6a3824Copy full SHA for d6a3824
sentry_sdk/tracing.py
@@ -416,7 +416,8 @@ def __enter__(self):
416
def __exit__(self, ty, value, tb):
417
# type: (Optional[Any], Optional[Any], Optional[Any]) -> None
418
if value is not None and should_be_treated_as_error(ty, value):
419
- self.set_status(SPANSTATUS.INTERNAL_ERROR)
+ if self.status != SPANSTATUS.ERROR:
420
+ self.set_status(SPANSTATUS.INTERNAL_ERROR)
421
422
with capture_internal_exceptions():
423
scope, old_span = self._context_manager_state
0 commit comments