##// END OF EJS Templates
metrics: reduce cardinality on view names
super-admin -
r4810:4c813ee9 default
parent child Browse files
Show More
@@ -64,7 +64,7 b' class RequestWrapperTween(object):'
64
64
65 statsd = request.registry.statsd
65 statsd = request.registry.statsd
66 if statsd:
66 if statsd:
67 match_route = request.matched_route.name if request.matched_route else _path
67 match_route = request.matched_route.name if request.matched_route else "NOT_FOUND"
68 resp_code = getattr(response, 'status_code', 'UNDEFINED')
68 resp_code = getattr(response, 'status_code', 'UNDEFINED')
69 elapsed_time_ms = round(1000.0 * total) # use ms only
69 elapsed_time_ms = round(1000.0 * total) # use ms only
70 statsd.timing(
70 statsd.timing(
General Comments 0
You need to be logged in to leave comments. Login now