Commit e15f90a
Olivier Gintrand
fix: uninstrument before re-instrumenting httpx in post_fork
The _is_instrumented_by_opentelemetry flag survives fork() even though
the actual wrap_function_wrapper monkey-patches do not. This caused
the post_fork guard to skip re-instrumentation in worker processes.
Fix: call uninstrument() first to reset the flag, then instrument()
to apply the patches fresh in each worker.
Signed-off-by: Olivier Gintrand <olivier.gintrand@forterro.com>1 parent bb4744a commit e15f90a
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments