Skip to content

Commit 3a81004

Browse files
committed
Fix rust path replay
1 parent 42500bb commit 3a81004

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drift/core/tracing/td_span_processor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ def on_end(self, span: ReadableSpan) -> None:
171171
replay_trace_id = replay_trace_id_context.get()
172172
if replay_trace_id:
173173
clean_span.trace_id = replay_trace_id
174+
# Rust path may have prebuilt bytes with the original OTel trace_id.
175+
# Force re-serialization so CLI receives the replay trace_id.
176+
clean_span.proto_span_bytes = None
174177
else:
175178
logger.error("No replay trace ID found, cannot send inbound span for replay")
176179
return

0 commit comments

Comments
 (0)