summary refs log tree commit diff
path: root/synapse/http/server.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-05-09 23:03:11 +0100
committerRichard van der Hoff <richard@matrix.org>2018-05-10 12:18:52 +0100
commit09b29f9c4a941ae5721b1f5e296156dfe92e3395 (patch)
tree2b10ca49d3a29c95d5c6473623b8c875eeeff73c /synapse/http/server.py
parentMove request_id management into SynapseRequest (diff)
downloadsynapse-09b29f9c4a941ae5721b1f5e296156dfe92e3395.tar.xz
Make RequestMetrics take a raw time rather than a clock
... which is going to make it easier to move around.
Diffstat (limited to '')
-rw-r--r--synapse/http/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index 369f7bbdd1..b16c9c17f6 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -87,7 +87,7 @@ def wrap_request_handler(request_handler, include_metrics=False):
                 # JsonResource (or a subclass), and JsonResource._async_render
                 # will update it once it picks a servlet.
                 servlet_name = self.__class__.__name__
-                request_metrics.start(self.clock, name=servlet_name)
+                request_metrics.start(self.clock.time_msec(), name=servlet_name)
 
                 with request.processing():
                     try:
@@ -138,7 +138,7 @@ def wrap_request_handler(request_handler, include_metrics=False):
                     finally:
                         try:
                             request_metrics.stop(
-                                self.clock, request
+                                self.clock.time_msec(), request
                             )
                         except Exception as e:
                             logger.warn("Failed to stop metrics: %r", e)