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 |
|
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