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 d9deb29 commit 299e300Copy full SHA for 299e300
1 file changed
sentry_sdk/integrations/aiohttp.py
@@ -314,8 +314,7 @@ async def sentry_urldispatcher_resolve(
314
pass
315
316
if name is not None:
317
- current_scope = sentry_sdk.get_current_scope()
318
- current_span = current_scope.span
+ current_span = sentry_sdk.get_current_span()
319
if isinstance(current_span, StreamedSpan) and not isinstance(
320
current_span, NoOpStreamedSpan
321
):
@@ -325,6 +324,7 @@ async def sentry_urldispatcher_resolve(
325
324
SEGMENT_SOURCE_FOR_STYLE[integration.transaction_style].value,
326
)
327
else:
+ current_scope = sentry_sdk.get_current_scope()
328
current_scope.set_transaction_name(
329
name,
330
source=SOURCE_FOR_STYLE[integration.transaction_style],
0 commit comments