Start using the event provenance fields in the muon schema
daviddawson opened this issue · 0 comments
daviddawson commented
During a saga (or maybe other processing), generating of new events should include a link to the event that "caused" the event to be emitted.
This is done by setting the "caused-by" field in the muon event schema.
Inferring causality may be difficult in many cases, but a generalised form should be made for sagas.
When running a sage responding to an event, the commands should be marked with the caused-by event id, and the events created during its execution stamped with that ID.