summary refs log tree commit diff
path: root/synapse/http/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-11 11:22:36 +0100
committerErik Johnston <erik@matrix.org>2019-10-11 11:58:52 +0100
commitf3ceaf432365bce77cff71116fb6c7d38e61c9ab (patch)
treea988bb62ec67a563fb47efaff9cafc97652e8e02 /synapse/http/server.py
parentFix MAU reaping where reserved users are specified. (#6168) (diff)
downloadsynapse-f3ceaf432365bce77cff71116fb6c7d38e61c9ab.tar.xz
Trace non-JSON APIs, /media, /key etc
Diffstat (limited to 'synapse/http/server.py')
-rw-r--r--synapse/http/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index cb9158fe1b..2ccb210fd6 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -388,7 +388,7 @@ class DirectServeResource(resource.Resource):
         if not callback:
             return super().render(request)
 
-        resp = callback(request)
+        resp = trace_servlet(self.__class__.__name__)(callback)(request)
 
         # If it's a coroutine, turn it into a Deferred
         if isinstance(resp, types.CoroutineType):