Commit b0ca847
committed
Fix OTEL trace_id seeding: use is_remote=True and valid span_id
The OTEL SDK ignores NonRecordingSpan parents with INVALID_SPAN_ID.
Using is_remote=True with a valid span_id makes start_span inherit
the trace_id from the seeded parent context.
Signed-off-by: Dor Zohar <dor@emcie.co>1 parent d86213d commit b0ca847
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | | - | |
251 | | - | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
0 commit comments