We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a035a4 commit 0c0b420Copy full SHA for 0c0b420
hyperactor/src/mailbox/headers.rs
@@ -56,6 +56,6 @@ pub fn log_message_latency_if_sampling(headers: &Attrs, actor_id: String) {
56
return;
57
};
58
let now = RealClock.system_time_now();
59
- let latency = now.duration_since(*send_timestamp).unwrap();
+ let latency = now.duration_since(*send_timestamp).unwrap_or_default();
60
MESSAGE_LATENCY_MICROS.record(latency.as_micros() as f64, metric_pairs);
61
}
0 commit comments