Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions drift/core/tracing/td_span_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ def on_end(self, span: ReadableSpan) -> None:
replay_trace_id = replay_trace_id_context.get()
if replay_trace_id:
clean_span.trace_id = replay_trace_id
# Rust path may have prebuilt bytes with the original OTel trace_id.
# Force re-serialization so CLI receives the replay trace_id.
clean_span.proto_span_bytes = None
else:
logger.error("No replay trace ID found, cannot send inbound span for replay")
return
Expand Down
5 changes: 4 additions & 1 deletion drift/instrumentation/e2e_common/base_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ def run_tests(self):
self.log("Phase 3: Running Tusk Tests", Colors.BLUE)
self.log("=" * 50, Colors.BLUE)

env = {"TUSK_ANALYTICS_DISABLED": "1"}
env = {
"TUSK_ANALYTICS_DISABLED": "1",
"TUSK_REQUIRE_INBOUND_REPLAY_SPAN": "1",
}

result = self.run_command(
["tusk", "run", "--print", "--output-format", "json", "--enable-service-logs"],
Expand Down