Skip to content

Commit 271b148

Browse files
committed
this has also changed
1 parent b201264 commit 271b148

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

sentry_sdk/integrations/redis/_async_common.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,22 @@ async def _sentry_execute(self, *args, **kwargs):
4141
origin=SPAN_ORIGIN,
4242
) as span:
4343
with capture_internal_exceptions():
44+
command_seq = None
45+
try:
46+
command_seq = self._execution_strategy.command_queue
47+
except AttributeError:
48+
if is_cluster:
49+
command_seq = self._command_stack
50+
else:
51+
self.command_stack
52+
4453
set_db_data_fn(span, self)
4554
_set_pipeline_data(
4655
span,
4756
is_cluster,
4857
get_command_args_fn,
4958
False if is_cluster else self.is_transaction,
50-
self._command_stack if is_cluster else self.command_stack,
59+
command_seq,
5160
)
5261

5362
return await old_execute(self, *args, **kwargs)

0 commit comments

Comments
 (0)