Commit 6c8e64e
authored
fix(pika): use ObjectProxy for ReadyMessagesDequeProxy to restore iterability with wrapt 2.x (#4461)
* use ObjectProxy for pika ReadyMessagesDequeProxy to restore iterability
wrapt 2.x BaseObjectProxy does not proxy __iter__, breaking iteration
over the wrapped deque. Switch to ObjectProxy which proxies all dunder
methods including __iter__.
Assisted-by: Claude Opus 4.6
* update changelog with PR number
Assisted-by: Claude Opus 4.6
* fix lint: import ordering and formatting
Assisted-by: Claude Opus 4.61 parent d83761f commit 6c8e64e
File tree
3 files changed
+16
-7
lines changed- instrumentation/opentelemetry-instrumentation-pika
- src/opentelemetry/instrumentation/pika
- tests
3 files changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
instrumentation/opentelemetry-instrumentation-pika/src/opentelemetry/instrumentation/pika/utils.py
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 10 | + | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
| |||
201 | 196 | | |
202 | 197 | | |
203 | 198 | | |
204 | | - | |
| 199 | + | |
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
0 commit comments