diff options
author | Erik Johnston <erik@matrix.org> | 2018-05-03 15:51:04 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-05-03 15:51:04 +0100 |
commit | 95b6912045b5d23ae823d6733beb7f315b010528 (patch) | |
tree | 90a15eeb5d39119e706249771f96739636f609af /synapse | |
parent | Merge pull request #3007 from matrix-org/rav/warn_on_logcontext_fail (diff) | |
download | synapse-95b6912045b5d23ae823d6733beb7f315b010528.tar.xz |
Fix metrics that have integer value labels
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/metrics/metric.py | 2 |
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)) |