Skip to content

Track XPLog origin by recording Outbox.event_id #12340

Open
@Rotorsoft

Description

@Rotorsoft

To improve the traceability of XP logs and support a more reliable audit trail, we should add an event_id column to the XpLogs table. This will enable direct linkage between XP logs and the originating events in the Outbox, improving data integrity and debugging.

  • Add a nullable event_id column to the XpLogs table. This should be just a numeric value without FK constraint due to the partitioned natured of the outbox
  • Backfill existing XpLogs where a corresponding event exists and can be matched reliably (optional)
  • Update XP logging logic to record the event_id where applicable
  • Add test coverage for new associations
  • Include migration script

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions