Skip to content

Commit ea71308

Browse files
use capture internal exception in aiohttp as well
1 parent 626f693 commit ea71308

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/aiohttp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ async def on_request_end(session, trace_config_ctx, params):
279279
span.set_data("reason", params.response.reason)
280280
span.finish()
281281

282-
add_http_request_source(span)
282+
with capture_internal_exceptions():
283+
add_http_request_source(span)
283284

284285
trace_config = TraceConfig()
285286

0 commit comments

Comments
 (0)