summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-05-03 15:51:04 +0100
committerErik Johnston <erik@matrix.org>2018-05-03 15:51:04 +0100
commit95b6912045b5d23ae823d6733beb7f315b010528 (patch)
tree90a15eeb5d39119e706249771f96739636f609af
parentMerge pull request #3007 from matrix-org/rav/warn_on_logcontext_fail (diff)
downloadsynapse-95b6912045b5d23ae823d6733beb7f315b010528.tar.xz
Fix metrics that have integer value labels
Diffstat (limited to '')
-rw-r--r--synapse/metrics/metric.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/metrics/metric.py b/synapse/metrics/metric.py
index fbba94e633..98d5ca7b6c 100644
--- a/synapse/metrics/metric.py
+++ b/synapse/metrics/metric.py
@@ -324,4 +324,4 @@ def _escape_character(m):
 def _escape_label_value(value):
     """Takes a label value and escapes quotes, newlines and backslashes
     """
-    return re.sub(r"([\n\"\\])", _escape_character, value)
+    return re.sub(r"([\n\"\\])", _escape_character, str(value))