mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-25 02:51:12 +00:00
Use match_pattern rather than path for metrics differentiation
This commit is contained in:
parent
5c0c0591dd
commit
8dd9a86d22
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ where
|
||||||
fn call(&self, req: ServiceRequest) -> Self::Future {
|
fn call(&self, req: ServiceRequest) -> Self::Future {
|
||||||
let log_on_drop = LogOnDrop {
|
let log_on_drop = LogOnDrop {
|
||||||
begin: Instant::now(),
|
begin: Instant::now(),
|
||||||
path: req.path().to_string(),
|
path: format!("{:?}", req.match_pattern()),
|
||||||
method: req.method().to_string(),
|
method: req.method().to_string(),
|
||||||
arm: false,
|
arm: false,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue