summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-09 18:34:20 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:51 +0000
commit1748605c5d69cb93cbe6bb4d93060124cdc9282f (patch)
tree61aaa16a8c9369fd14c56c23efbdc959cd0348c4 /synapse/federation
parentRemember to emit final linefeed from /metrics page, or Prometheus gets upset (diff)
downloadsynapse-1748605c5d69cb93cbe6bb4d93060124cdc9282f.tar.xz
Count incoming HTTP requests per servlet that responds
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/transport/server.py4
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):