zio-entity icon indicating copy to clipboard operation
zio-entity copied to clipboard

Enrich events

Open guersam opened this issue 3 years ago • 2 comments

It will be useful to attach some context values such as correlation ID, timestamp or etc. to the event without corrupting the domain logic.

guersam avatar Feb 04 '22 03:02 guersam

Yes, I was thinking about a way to attach correlation Id. Do you have any particular idea in mind as syntax?

tobia80 avatar Feb 11 '22 23:02 tobia80

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.

guersam avatar Feb 14 '22 00:02 guersam