Commit 1a4f0b7
committed
fix(tracing): Deep-copy spans before enqueuing to background queue
Processors like SGPAsyncTracingProcessor mutate span.data in-place
via _add_source_to_span. With async background processing, this raced
with the caller who holds a reference to the same span object.
Deep-copying via model_copy(deep=True) decouples the two.1 parent 84b3bca commit 1a4f0b7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
0 commit comments