Skip to content

Commit 3dfea2a

Browse files
authored
[TRIVIAL] Consistent format for logging transmission latency (#4492)
# Description Being able to log the transmission latency is already quite useful but the current format (which can switch between `ms` and `s`) is a bit annoying to for dashboards. # Changes switch to always logging latency in milliseconds
1 parent add8db2 commit 3dfea2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/autopilot/src/infra/solvers/byte_stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ impl Stream for ByteStream {
5656
let _span = this.span.enter();
5757
let first_poll = this.first_polled_at.expect("initialized at first poll");
5858
tracing::debug!(
59-
to_transmission_start = ?first_poll.duration_since(this.created_at),
60-
transmission = ?first_poll.elapsed(),
59+
to_transmission_start_ms = first_poll.duration_since(this.created_at).as_millis(),
60+
transmission_ms = first_poll.elapsed().as_millis(),
6161
"finished streaming http request body"
6262
);
6363
Poll::Ready(None)

0 commit comments

Comments
 (0)