diff options
author | Alex Auvolat <alex@adnab.me> | 2023-10-02 13:11:42 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-10-02 13:11:42 +0200 |
commit | 4818e8cccc68c88ae64a7a6f65032906f6d818c3 (patch) | |
tree | a7491cf8b77d6556f5e128a2697ea4286256b1ed /src/https.rs | |
parent | 46d517b2f75bfff84b49fe3abc57152dcbc55133 (diff) | |
download | tricot-4818e8cccc68c88ae64a7a6f65032906f6d818c3.tar.gz tricot-4818e8cccc68c88ae64a7a6f65032906f6d818c3.zip |
cargo upgrades: update opentelemetry dependency to 0.20/prometheus to 0.13
Diffstat (limited to 'src/https.rs')
-rw-r--r-- | src/https.rs | 4 |
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(), }); |