diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-10 15:23:33 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:51 +0000 |
commit | 493e3fa0ca81b6070648e0a2c00c6c229cec92fe (patch) | |
tree | 246e9e86111095abe869537d4f012e91eec48f32 /synapse | |
parent | Rename TimerMetric to DistributionMetric; as it could count more than just time (diff) | |
download | synapse-493e3fa0ca81b6070648e0a2c00c6c229cec92fe.tar.xz |
Don't forbid '_' in metric basenames any more, to allow things like foo_time
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/metrics/__init__.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py index c161c17e9f..f85c6418e5 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py @@ -43,11 +43,6 @@ class Metrics(object): self.name_prefix = name def _register(self, metric_class, name, *args, **kwargs): - if "_" in name: - raise ValueError("Metric names %s is invalid as it cannot contain an underscore" - % (name) - ) - full_name = "%s_%s" % (self.name_prefix, name) metric = metric_class(full_name, *args, **kwargs) |