mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-21 19:29:49 -04:00
Name the metric appropriately
This commit is contained in:
parent
1ff29fbe1b
commit
797e31b73f
@ -106,7 +106,7 @@ impl<B> OnResponse<B> for MetricsRecorder {
|
|||||||
let labels = self.labels.lock().expect("Failed to unlock labels").clone();
|
let labels = self.labels.lock().expect("Failed to unlock labels").clone();
|
||||||
self.rec
|
self.rec
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.register_histogram(&Key::from_parts("http_request_time_ms", labels.clone()))
|
.register_histogram(&Key::from_parts("http_request_time_micros", labels.clone()))
|
||||||
// If we somehow end up having requests overflow from u128 into f64 then we have
|
// If we somehow end up having requests overflow from u128 into f64 then we have
|
||||||
// much bigger problems than this cast.
|
// much bigger problems than this cast.
|
||||||
.record(latency.as_micros() as f64);
|
.record(latency.as_micros() as f64);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user