From 186d9f008ead33f87ae2ebbfc884b1822227665d Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 8 Jan 2024 03:02:04 +0100 Subject: [PATCH] send: remove host facet from tracing histogram --- src/send.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/send.rs b/src/send.rs index 7bb0802..e38c4bd 100644 --- a/src/send.rs +++ b/src/send.rs @@ -51,10 +51,10 @@ pub async fn send_raw( let t3 = Instant::now(); histogram!("relay_http_request_duration", t2 - t1); if res.status() >= StatusCode::OK && res.status() < StatusCode::MULTIPLE_CHOICES { - histogram!("relay_http_response_duration", t3 - t2, "res" => "ok", "host" => host); + histogram!("relay_http_response_duration", t3 - t2, "res" => "ok"); Ok(()) } else { - histogram!("relay_http_response_duration", t3 - t2, "res" => "err", "host" => host); + histogram!("relay_http_response_duration", t3 - t2, "res" => "err"); let response = res.text().await?; Err(Error::Response(response)) }