diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-09 18:34:20 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:51 +0000 |
commit | 1748605c5d69cb93cbe6bb4d93060124cdc9282f (patch) | |
tree | 61aaa16a8c9369fd14c56c23efbdc959cd0348c4 /synapse/federation/transport | |
parent | Remember to emit final linefeed from /metrics page, or Prometheus gets upset (diff) | |
download | synapse-1748605c5d69cb93cbe6bb4d93060124cdc9282f.tar.xz |
Count incoming HTTP requests per servlet that responds
Diffstat (limited to 'synapse/federation/transport')
-rw-r--r-- | synapse/federation/transport/server.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py index 6c624977d7..7838a81362 100644 --- a/synapse/federation/transport/server.py +++ b/synapse/federation/transport/server.py @@ -148,6 +148,10 @@ class BaseFederationServlet(object): logger.exception("authenticate_request failed") raise defer.returnValue(response) + + # Extra logic that functools.wraps() doesn't finish + new_code.__self__ = code.__self__ + return new_code def register(self, server): |