mirror of
https://github.com/sadoyan/aralez.git
synced 2026-10-24 06:31:36 +08:00
Metrics for cache
This commit is contained in:
@@ -352,6 +352,7 @@ impl ProxyHttp for LB {
|
||||
code: session.response_written().map(|resp| resp.status),
|
||||
latency: ctx.start_time.elapsed(),
|
||||
version: session.req_header().version,
|
||||
cache: session.cache.phase(),
|
||||
upstream: ctx.hostname.take().unwrap_or_else(|| LOCALHOST.clone()),
|
||||
};
|
||||
calc_metrics(m);
|
||||
|
||||
Reference in New Issue
Block a user