Skip to content

Commit

Permalink
[EASY] Bring back tracing spans for submission (#3014)
Browse files Browse the repository at this point in the history
# Description
When we started to submit solutions in a background task with
#2986 the logs emitted from
the submission future lost all the tracing information of the run loop.
That means you can no longer easily grep for an auction id in the logs
and see the submission logs.

# Changes
Instruments the submission future with the current tracing span to bring
back the auction id and other data that is available while building the
future.
  • Loading branch information
MartinquaXD authored Sep 25, 2024
1 parent a6985fd commit 440d12f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/autopilot/src/run_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ impl RunLoop {
}
}
Metrics::single_run_completed(single_run_start.elapsed());
};
}
.instrument(tracing::Span::current());

let sender = self.get_settlement_queue_sender(&driver.name).await;
if let Err(err) = sender.send(Box::pin(settle_fut)) {
Expand Down

0 comments on commit 440d12f

Please sign in to comment.