T424350: Incremental MediaWiki History Phase I uses a combination of events and database snapshots to reconstruct the full MediaWiki History. The mediawiki_history dataset contains an event based view of state changes to pages, users and revisions.
If events contained the logging table's log_id associated with the event, (e.g. user rename, page move, page delete, etc.), we would have a stable identifier that could easily map between event data and MediaWiki's own record of state changes.
The parent task, T425996: Add log_id to mediawiki page_change and user_change events has more details.
Providing the LogEntry instance in relevant DomainEvents will make it possible to add the log_id field to the externally event data.
The difficulty of doing this will vary depending on which DomainEvent is being emitted.
https://www.mediawiki.org/wiki/Manual:Domain_events/Hierarchy#Include_LogEntry_objects_in_events