diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-09-13 02:29:55 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-13 02:29:55 +1000 |
commit | b617864cd9f81109e818bc5ae95bee317d917b72 (patch) | |
tree | 5bf6d0ee398731dc14ec73ac778ecaba98d0d3fb /synapse/metrics/__init__.py | |
parent | Remove the cap on federation retry interval. (#6026) (diff) | |
download | synapse-b617864cd9f81109e818bc5ae95bee317d917b72.tar.xz |
Fix for structured logging tests stomping on logs (#6023)
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r-- | synapse/metrics/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py index b5c9595cb9..bec3b13397 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py @@ -20,6 +20,7 @@ import os import platform import threading import time +from typing import Dict, Union import six @@ -42,9 +43,7 @@ logger = logging.getLogger(__name__) METRICS_PREFIX = "/_synapse/metrics" running_on_pypy = platform.python_implementation() == "PyPy" -all_metrics = [] -all_collectors = [] -all_gauges = {} +all_gauges = {} # type: Dict[str, Union[LaterGauge, InFlightGauge, BucketCollector]] HAVE_PROC_SELF_STAT = os.path.exists("/proc/self/stat") |