Skip to content

Commit 70a0e3f

Browse files
simplify
1 parent ac4f7ba commit 70a0e3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/integrations/arq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ async def _sentry_coroutine(
197197
return await coroutine(ctx, *args, **kwargs)
198198

199199
if has_span_streaming_enabled(client.options):
200-
span = sentry_sdk.traces.get_current_span()
200+
scope = sentry_sdk.get_current_scope()
201+
span = scope.streamed_span
201202
if span is not None:
202203
span.name = name
203204

204-
scope = sentry_sdk.get_current_scope()
205205
scope.set_transaction_name(name)
206206

207207
sentry_sdk.get_isolation_scope().add_event_processor(

0 commit comments

Comments
 (0)