Commit ad340e20 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[views] fix typo in dictionnary access

parent 40d6dbfdb434
Pipeline #64348 waiting for manual action with stages
in 1 minute and 27 seconds
......@@ -134,7 +134,7 @@ def tween_factory(handler, registry):
if "time_routes" in PD_METRICS:
PD_METRICS["time_routes"].labels(route_name).inc(duration)
if "slow_routes" in PD_METRICS and duration > SLOW_REQUEST_THRESHOLD:
PD_METRICS["slow_route"].labels(route_name).inc()
PD_METRICS["slow_routes"].labels(route_name).inc()
if "http_requests" in PD_METRICS:
PD_METRICS["http_requests"].labels(
method=request.method,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment