Skip to content

Commit 032c7e2

Browse files
committed
.
1 parent f783ecc commit 032c7e2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

sentry_sdk/integrations/redis/utils.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ def _set_pipeline_data(
112112
is_transaction: bool,
113113
commands_seq: "Sequence[Any]",
114114
) -> None:
115-
if isinstance(span, StreamedSpan):
116-
span.set_attribute("redis.is_cluster", is_cluster)
117-
span.set_attribute("redis.transaction", is_transaction)
118-
else:
115+
if isinstance(span, Span):
119116
span.set_tag("redis.is_cluster", is_cluster)
120117
span.set_tag("redis.transaction", is_transaction)
121118

@@ -129,13 +126,9 @@ def _set_pipeline_data(
129126

130127
if isinstance(span, StreamedSpan):
131128
span.set_attribute(
132-
"redis.commands.count",
129+
"db.redis.pipeline_length",
133130
len(commands_seq),
134131
)
135-
span.set_attribute(
136-
"redis.commands.first_ten",
137-
commands,
138-
)
139132
else:
140133
span.set_data(
141134
"redis.commands",

0 commit comments

Comments
 (0)