Commit c1ceb7b
committed
fix(redis): extract ClusterPipeline commands from _execution_strategy in redis-py 6+
redis-py 6 refactored ClusterPipeline so that commands are appended to
_execution_strategy.command_queue instead of instance.command_stack.
The latter still exists but is never populated, causing pipeline spans
to always show an empty command list.
Prefer _execution_strategy.command_queue when it exists, falling back
to the old command_stack / _command_stack attributes for older versions
and non-cluster pipelines.
Fixes #4084
Signed-off-by: alliasgher <alliasgher123@gmail.com>1 parent 11e1867 commit c1ceb7b
1 file changed
Lines changed: 11 additions & 5 deletions
File tree
- instrumentation/opentelemetry-instrumentation-redis/src/opentelemetry/instrumentation/redis
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| |||
0 commit comments