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/server.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 '')
-rw-r--r-- | synapse/http/server.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py index 1d05b53873..200b2c4837 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -20,7 +20,6 @@ from synapse.api.errors import ( ) from synapse.http.request_metrics import ( requests_counter, - outgoing_responses_counter, ) from synapse.util.logcontext import LoggingContext, PreserveLoggingContext from synapse.util.caches import intern_dict @@ -112,7 +111,6 @@ def wrap_request_handler(request_handler, include_metrics=False): ) else: logger.exception(e) - outgoing_responses_counter.inc(request.method, str(code)) respond_with_json( request, code, cs_exception(e), send_cors=True, pretty_print=_request_user_agent_is_curl(request), @@ -274,8 +272,6 @@ class JsonResource(HttpServer, resource.Resource): def _send_response(self, request, code, response_json_object, response_code_message=None): - outgoing_responses_counter.inc(request.method, str(code)) - # TODO: Only enable CORS for the requests that need it. respond_with_json( request, code, response_json_object, |