diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-05-09 23:44:22 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-05-10 12:19:52 +0100 |
commit | 49e5a613f1ac53498b31150f78332fc64932e61b (patch) | |
tree | b269d8666f9c0f270a94f30e88ce470e24e6d962 /synapse/http/request_metrics.py | |
parent | Bump requests_counter in wrapped_request_handler (diff) | |
download | synapse-49e5a613f1ac53498b31150f78332fc64932e61b.tar.xz |
Move outgoing_responses_counter handling to RequestMetrics
it's much neater there.
Diffstat (limited to 'synapse/http/request_metrics.py')
-rw-r--r-- | synapse/http/request_metrics.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/http/request_metrics.py b/synapse/http/request_metrics.py index 4e8a5f5306..8c850bf23f 100644 --- a/synapse/http/request_metrics.py +++ b/synapse/http/request_metrics.py @@ -119,6 +119,8 @@ class RequestMetrics(object): ) return + outgoing_responses_counter.inc(request.method, str(request.code)) + response_count.inc(request.method, self.name, tag) response_timer.inc_by( |