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 2dc9255 commit 6aef347Copy full SHA for 6aef347
1 file changed
sentry_sdk/integrations/aiohttp.py
@@ -205,7 +205,9 @@ async def sentry_app_handle(
205
try:
206
response = await old_handle(self, request)
207
except HTTPException as e:
208
- if isinstance(span, StreamedSpan):
+ if isinstance(span, StreamedSpan) and not isinstance(
209
+ span, NoOpStreamedSpan
210
+ ):
211
span.set_attribute(
212
"http.response.status_code", e.status_code
213
)
0 commit comments