Commit 8566650
committed
fix(grpc): Read method from handler_call_details for grpcio >= 1.76 compat
grpcio 1.76 introduced registered method handlers which resolve RPC
methods at the C-core level. For these methods,
`context._rpc_event.call_details.method` is empty, breaking tracing.
This fix captures `handler_call_details.method` in the closure scope
to avoid both the grpcio 1.76 issue and race conditions from shared
instance state in the ThreadPoolExecutor.
Fixes #55201 parent 594dce5 commit 8566650
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
0 commit comments