aboutsummaryrefslogtreecommitdiff
path: root/src/https.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/https.rs')
-rw-r--r--src/https.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/https.rs b/src/https.rs
index f31caef..ed98ae1 100644
--- a/src/https.rs
+++ b/src/https.rs
@@ -41,7 +41,7 @@ pub struct HttpsConfig {
struct HttpsMetrics {
requests_received: metrics::Counter<u64>,
requests_served: metrics::Counter<u64>,
- request_proxy_duration: metrics::ValueRecorder<f64>,
+ request_proxy_duration: metrics::Histogram<f64>,
}
pub async fn serve_https(
@@ -63,7 +63,7 @@ pub async fn serve_https(
.with_description("Total number of requests served over HTTPS")
.init(),
request_proxy_duration: meter
- .f64_value_recorder("https_request_proxy_duration")
+ .f64_histogram("https_request_proxy_duration")
.with_description("Duration between time when request was received, and time when backend returned status code and headers")
.init(),
});