Commit c37fa7e
authored
Propagate OTEL trace id across client-workflow boundary (#1601)
The OTEL-aware OpenAI Agents interceptor propagated and seeded the OTEL
span id but never the trace id, so the client-side root span and the
workflow's reconstructed spans ended up in different traces. This made
test_sdk_trace_to_otel_span_parenting flaky. Wire up the existing
seed_trace_id so the workflow's root span reuses the caller's trace id.1 parent f129be7 commit c37fa7e
1 file changed
Lines changed: 9 additions & 2 deletions
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| |||
0 commit comments