1 files changed, 6 insertions, 3 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index a7345331af..d9f35a5dba 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -127,12 +127,15 @@ class ApplicationServicesHandler(object):
now = self.clock.time_msec()
ts = yield self.store.get_received_ts(events[-1].event_id)
- synapse.metrics.event_processing_positions.labels("appservice_sender").set(upper_bound)
+ synapse.metrics.event_processing_positions.labels(
+ "appservice_sender").set(upper_bound)
events_processed_counter.inc(len(events))
- synapse.metrics.event_processing_lag.labels("appservice_sender").set(now - ts)
- synapse.metrics.event_processing_last_ts.labels("appservice_sender").set(ts)
+ synapse.metrics.event_processing_lag.labels(
+ "appservice_sender").set(now - ts)
+ synapse.metrics.event_processing_last_ts.labels(
+ "appservice_sender").set(ts)
finally:
self.is_processing = False
|