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 74cb7db commit ab8e760Copy full SHA for ab8e760
sentry_sdk/tracing.py
@@ -1273,8 +1273,10 @@ def __enter__(self):
1273
1274
def __exit__(self, ty, value, tb):
1275
# type: (Optional[Any], Optional[Any], Optional[Any]) -> None
1276
+ if value is not None:
1277
+ self.set_status(SPANSTATUS.INTERNAL_ERROR)
1278
+
1279
self.finish()
- # XXX set status to error if unset and an exception occurred?
1280
context.detach(self._ctx_token)
1281
1282
def _get_attribute(self, name):
0 commit comments