zio-entity
zio-entity copied to clipboard
Enrich events
It will be useful to attach some context values such as correlation ID, timestamp or etc. to the event without corrupting the domain logic.
Yes, I was thinking about a way to attach correlation Id. Do you have any particular idea in mind as syntax?
I had Aecor's EventsourcedBehavior#enrich
in mind, but it only supports for context-free event side enrichment such as timestamp, not command side context values like correlation id that involves enrichment to the inter-node communication.