From 9a5a2650b04f8c9de1c12476df54e87076307dd1 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 15 Sep 2020 14:44:56 +1000 Subject: [PATCH] Fix metrics formatting --- beacon_node/http_api/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index 158f0199991..263203e704a 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -117,7 +117,7 @@ pub fn prometheus_metrics() -> warp::filters::log::Log Option<&'static str> { - if info.path() == &format!("{}/{}/{}", API_PREFIX, API_VERSION, s) { + if info.path() == &format!("/{}/{}/{}", API_PREFIX, API_VERSION, s) { Some(s) } else { None @@ -127,7 +127,7 @@ pub fn prometheus_metrics() -> warp::filters::log::Log Option<&'static str> { if info .path() - .starts_with(&format!("{}/{}/{}", API_PREFIX, API_VERSION, s)) + .starts_with(&format!("/{}/{}/{}", API_PREFIX, API_VERSION, s)) { Some(s) } else { @@ -158,7 +158,7 @@ pub fn prometheus_metrics() -> warp::filters::log::Log