aboutsummaryrefslogtreecommitdiff
path: root/src/https.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-11 21:21:40 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-11 21:21:40 +0100
commit3c5aa3680eab1989361026b96e4968b4cd92dcb5 (patch)
tree2ef33b9811e6189a02d6c90734a7e4c1ec437c9c /src/https.rs
parent6fda16048afbba1abb5af29b90095fd78de43398 (diff)
downloadtricot-3c5aa3680eab1989361026b96e4968b4cd92dcb5.tar.gz
tricot-3c5aa3680eab1989361026b96e4968b4cd92dcb5.zip
status code just as integer, drop canonical reason string
Diffstat (limited to 'src/https.rs')
-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)