status code just as integer, drop canonical reason string
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6fda16048a
commit
3c5aa3680e
1 changed files with 1 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue