aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/https.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/https.rs b/src/https.rs
index 125e429..3718bfd 100644
--- a/src/https.rs
+++ b/src/https.rs
@@ -193,14 +193,7 @@ async fn handle_request(
)
.await;
- tags.push(KeyValue::new(
- "status_code",
- format!(
- "{} {}",
- resp.status().as_u16(),
- resp.status().canonical_reason().unwrap_or_default()
- ),
- ));
+ tags.push(KeyValue::new("status_code", resp.status().as_u16() as i64));
metrics.requests_served.add(1, &tags);
Ok(resp)