diff options
author | Erik Johnston <erikj@jki.re> | 2018-05-22 09:54:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 09:54:30 +0100 |
commit | 13a8dfba0de78a9e98f97716ea974e1c19109c77 (patch) | |
tree | b74feee8d92f10b1d8ef100957b375fbf730576a /synapse/http/site.py | |
parent | Merge pull request #3255 from matrix-org/rav/fix_transactions (diff) | |
parent | Don't store context (diff) | |
download | synapse-13a8dfba0de78a9e98f97716ea974e1c19109c77.tar.xz |
Merge pull request #3252 from matrix-org/erikj/in_flight_requests
Add in flight request metrics
Diffstat (limited to 'synapse/http/site.py')
-rw-r--r-- | synapse/http/site.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py index 202a990508..b608504225 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py @@ -85,7 +85,9 @@ class SynapseRequest(Request): def _started_processing(self, servlet_name): self.start_time = int(time.time() * 1000) self.request_metrics = RequestMetrics() - self.request_metrics.start(self.start_time, name=servlet_name) + self.request_metrics.start( + self.start_time, name=servlet_name, method=self.method, + ) self.site.access_logger.info( "%s - %s - Received request: %s %s", |