mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 10:12:15 -04:00
Track where event stream processing have gotten up to
This commit is contained in:
parent
ab825aa328
commit
92e34615c5
4 changed files with 24 additions and 0 deletions
|
@ -444,6 +444,9 @@ class EventsStore(EventsWorkerStore):
|
|||
new_forward_extremeties=new_forward_extremeties,
|
||||
)
|
||||
persist_event_counter.inc_by(len(chunk))
|
||||
synapse.metrics.event_persisted_position.set(
|
||||
chunk[-1][0].internal_metadata.stream_ordering,
|
||||
)
|
||||
for event, context in chunk:
|
||||
if context.app_service:
|
||||
origin_type = "local"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue