Skip to content

Commit 30fef6f

Browse files
committed
Remove suppress_chained_exceptions
1 parent 18dbeae commit 30fef6f

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

sentry_sdk/consts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class CompressionAlgo(Enum):
8686
"before_send_span": Optional[
8787
Callable[[SpanJSON, Hint], Optional[SpanJSON]]
8888
],
89-
"suppress_asgi_chained_exceptions": Optional[bool],
9089
"data_collection": Optional[DataCollectionUserOptions],
9190
},
9291
total=False,

sentry_sdk/integrations/asgi.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,6 @@ async def _run_app(
205205
return await self.app(scope, receive, send)
206206

207207
except Exception as exc:
208-
suppress_chained_exceptions = (
209-
sentry_sdk.get_client()
210-
.options.get("_experiments", {})
211-
.get("suppress_asgi_chained_exceptions", True)
212-
)
213-
if suppress_chained_exceptions:
214-
self._capture_lifespan_exception(exc)
215-
raise exc from None
216-
217208
exc_info = sys.exc_info()
218209
with capture_internal_exceptions():
219210
self._capture_lifespan_exception(exc)
@@ -365,15 +356,6 @@ async def _sentry_wrapped_send(
365356
)
366357

367358
except Exception as exc:
368-
suppress_chained_exceptions = (
369-
sentry_sdk.get_client()
370-
.options.get("_experiments", {})
371-
.get("suppress_asgi_chained_exceptions", True)
372-
)
373-
if suppress_chained_exceptions:
374-
self._capture_request_exception(exc)
375-
raise exc from None
376-
377359
exc_info = sys.exc_info()
378360
with capture_internal_exceptions():
379361
self._capture_request_exception(exc)

0 commit comments

Comments
 (0)