summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2018-06-05 17:30:45 +0100
committerWill Hunt <will@half-shot.uk>2018-06-05 17:30:45 +0100
commitd6e3c2c79baeb752bb1faa68042e0c43f5854c86 (patch)
tree4378bc9a6f64d839da183cf68b9ed29b07548d31
parentAdd metrics to track appservice transactions (diff)
downloadsynapse-d6e3c2c79baeb752bb1faa68042e0c43f5854c86.tar.xz
Let's try labels instead of label, that might work
Diffstat (limited to '')
-rw-r--r--synapse/appservice/api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py
index 08fe67e19c..47251fb6ad 100644
--- a/synapse/appservice/api.py
+++ b/synapse/appservice/api.py
@@ -238,15 +238,15 @@ class ApplicationServiceApi(SimpleHttpClient):
                 args={
                     "access_token": service.hs_token
                 })
-            sent_transactions_counter.label(service.id).inc()
-            sent_events_counter.label(service.id).inc(len(events))
+            sent_transactions_counter.labels(service.id).inc()
+            sent_events_counter.labels(service.id).inc(len(events))
             defer.returnValue(True)
             return
         except CodeMessageException as e:
             logger.warning("push_bulk to %s received %s", uri, e.code)
         except Exception as ex:
             logger.warning("push_bulk to %s threw exception %s", uri, ex)
-        failed_transactions_counter.label(service.id).inc()
+        failed_transactions_counter.labels(service.id).inc()
         defer.returnValue(False)
 
     def _serialize(self, events):