summary refs log tree commit diff
path: root/synapse/metrics
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-05-03 16:25:05 +0100
committerErik Johnston <erik@matrix.org>2018-05-03 16:25:05 +0100
commit6d8ec3462d33daa5d390fca206ec2e281c27c38f (patch)
treedce04f454951d4aa0786589fe863cc3fa21b087d /synapse/metrics
parentFix metrics that have integer value labels (diff)
downloadsynapse-6d8ec3462d33daa5d390fca206ec2e281c27c38f.tar.xz
Note that label values can be anything
Diffstat (limited to '')
-rw-r--r--synapse/metrics/metric.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/metrics/metric.py b/synapse/metrics/metric.py
index 98d5ca7b6c..f421e7a93f 100644
--- a/synapse/metrics/metric.py
+++ b/synapse/metrics/metric.py
@@ -71,7 +71,8 @@ class BaseMetric(object):
         """Render this metric for a single set of labels
 
         Args:
-            label_values (list[str]): values for each of the labels
+            label_values (list[object]): values for each of the labels,
+                (which get stringified).
             value: value of the metric at with these labels
 
         Returns: