diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-04-28 14:59:45 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-04-28 14:59:45 +0100 |
commit | 1c188cf73c503c99cc62f2af5c0a4d9546048280 (patch) | |
tree | c416f93bcdb93c813fdd9e6b57566ea14d0565ef /synapse/replication/resource.py | |
parent | Merge pull request #755 from matrix-org/markjh/right_direction (diff) | |
parent | Add a comment explaining why automatic metric reporting is disabled for JsonR... (diff) | |
download | synapse-1c188cf73c503c99cc62f2af5c0a4d9546048280.tar.xz |
Merge pull request #756 from matrix-org/markjh/more_metrics
Report per request metrics for all of the things using request_handler
Diffstat (limited to 'synapse/replication/resource.py')
-rw-r--r-- | synapse/replication/resource.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/replication/resource.py b/synapse/replication/resource.py index 149fc4c650..ff78c60f13 100644 --- a/synapse/replication/resource.py +++ b/synapse/replication/resource.py @@ -112,6 +112,7 @@ class ReplicationResource(Resource): self.presence_handler = hs.get_handlers().presence_handler self.typing_handler = hs.get_handlers().typing_notification_handler self.notifier = hs.notifier + self.clock = hs.get_clock() self.putChild("remove_pushers", PusherResource(hs)) @@ -139,7 +140,7 @@ class ReplicationResource(Resource): state_token, )) - @request_handler + @request_handler() @defer.inlineCallbacks def _async_render_GET(self, request): limit = parse_integer(request, "limit", 100) |