Commit 173831c
authored
Fix HTTPX tracing
When performing parallel requests eg.
HTTPX.with_origin('https://api.ventrata.com').get('/', '/', '/‘)
The parallel requests have their context nested so appear like:
- HTTP GET
- HTTP GET
- HTTP GET
This change injects the headers only with that request's context so doesn't pollute the global state and the results are what we expect:
- HTTP GET
- HTTP GET
- HTTP GET1 parent 2b1ce12 commit 173831c
File tree
1 file changed
+1
-3
lines changed- instrumentation/httpx/lib/opentelemetry/instrumentation/httpx
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
0 commit comments