Skip to content

Commit b1d1ff5

Browse files
committed
Make sure only spans are created, not transactions
1 parent 291743f commit b1d1ff5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/integrations/redis/_sync_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def sentry_patched_execute_command(self, name, *args, **kwargs):
8888
op=cache_properties["op"],
8989
name=cache_properties["description"],
9090
origin=SPAN_ORIGIN,
91+
only_if_parent=True,
9192
)
9293
cache_span.__enter__()
9394

@@ -97,6 +98,7 @@ def sentry_patched_execute_command(self, name, *args, **kwargs):
9798
op=db_properties["op"],
9899
name=db_properties["description"],
99100
origin=SPAN_ORIGIN,
101+
only_if_parent=True,
100102
)
101103
db_span.__enter__()
102104

0 commit comments

Comments
 (0)