summary refs log tree commit diff
path: root/synapse/handlers
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/handlers
parentAdd GaugeMetric (diff)
downloadsynapse-92e34615c5c9ed5df2b0072a2686d3e42239e420.tar.xz
Track where event stream processing have gotten up to
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/appservice.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index 3dd3fa2a27..2a7e31e711 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -111,6 +111,10 @@ class ApplicationServicesHandler(object):
                     events_processed_counter.inc_by(len(events))
 
                     yield self.store.set_appservice_last_pos(upper_bound)
+
+                    synapse.metrics.event_processing_positions.set(
+                        upper_bound, "appservice_sender",
+                    )
             finally:
                 self.is_processing = False