We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77b9298 commit 2202e0cCopy full SHA for 2202e0c
sentry_sdk/integrations/asgi.py
@@ -307,10 +307,13 @@ async def _run_app(
307
else nullcontext()
308
)
309
310
- for attribute, value in _get_request_attributes(scope).items():
311
- sentry_scope.set_attribute(attribute, value)
312
-
313
with span_ctx as span:
+ if isinstance(span, StreamedSpan):
+ for attribute, value in _get_request_attributes(
+ scope
314
+ ).items():
315
+ span.set_attribute(attribute, value)
316
+
317
try:
318
319
async def _sentry_wrapped_send(
0 commit comments