summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-06-14 14:07:32 +0100
committerErik Johnston <erik@matrix.org>2019-06-14 14:07:32 +0100
commit3ed595e327aee6d45ed0371c98e828d724c26b2d (patch)
tree12c4ace5f37569f1c298043ed3989995dc4e22a5 /synapse/storage/events.py
parentTrack deactivated accounts in the database (#5378) (diff)
downloadsynapse-3ed595e327aee6d45ed0371c98e828d724c26b2d.tar.xz
Prometheus histograms are cumalative
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 1578403f79..f631fb1733 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -228,7 +228,8 @@ class EventsStore(
         self._state_resolution_handler = hs.get_state_resolution_handler()
 
         # Collect metrics on the number of forward extremities that exist.
-        self._current_forward_extremities_amount = {}
+        # Counter of number of extremities to count
+        self._current_forward_extremities_amount = c_counter()
 
         BucketCollector(
             "synapse_forward_extremities",