We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a44bbf4 commit 1d57bb6Copy full SHA for 1d57bb6
1 file changed
sentry_sdk/integrations/asgi.py
@@ -213,9 +213,10 @@ async def _run_app(
213
)
214
215
method = scope.get("method", "").upper()
216
- span = None
+
217
span_ctx: "ContextManager[Union[Span, StreamedSpan, None]]"
218
if span_streaming:
219
+ span = None
220
if ty in ("http", "websocket"):
221
if (
222
ty == "websocket"
@@ -241,6 +242,7 @@ async def _run_app(
241
242
span_ctx = span or nullcontext()
243
244
else:
245
+ transaction = None
246
247
248
0 commit comments