Use match_pattern rather than path for metrics differentiation

This commit is contained in:
asonix 2024-04-21 11:44:16 -05:00
parent 5c0c0591dd
commit 8dd9a86d22

View file

@ -80,7 +80,7 @@ where
fn call(&self, req: ServiceRequest) -> Self::Future {
let log_on_drop = LogOnDrop {
begin: Instant::now(),
path: req.path().to_string(),
path: format!("{:?}", req.match_pattern()),
method: req.method().to_string(),
arm: false,
};