Name the metric appropriately

This commit is contained in:
Jeremy Wall 2023-01-22 21:57:20 -05:00
parent 1ff29fbe1b
commit 797e31b73f

View File

@ -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);