diff options
author | Erik Johnston <erik@matrix.org> | 2018-04-11 11:07:51 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-04-11 12:13:40 +0100 |
commit | 92e34615c5c9ed5df2b0072a2686d3e42239e420 (patch) | |
tree | 53fe39bfa8245da8fa1e73690ac18a4fab9c28e7 /synapse/handlers/appservice.py | |
parent | Add GaugeMetric (diff) | |
download | synapse-92e34615c5c9ed5df2b0072a2686d3e42239e420.tar.xz |
Track where event stream processing have gotten up to
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r-- | synapse/handlers/appservice.py | 4 |
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 |