summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-04-11 11:07:51 +0100
committerErik Johnston <erik@matrix.org>2018-04-11 12:13:40 +0100
commit92e34615c5c9ed5df2b0072a2686d3e42239e420 (patch)
tree53fe39bfa8245da8fa1e73690ac18a4fab9c28e7 /synapse/federation
parentAdd GaugeMetric (diff)
downloadsynapse-92e34615c5c9ed5df2b0072a2686d3e42239e420.tar.xz
Track where event stream processing have gotten up to
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/transaction_queue.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index 5b0b798e57..d68f0d8950 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -239,6 +239,10 @@ class TransactionQueue(object):
                     "events", next_token
                 )
 
+                synapse.metrics.event_processing_positions.set(
+                    next_token, "federation_sender",
+                )
+
         finally:
             self._is_processing = False