event-machine icon indicating copy to clipboard operation
event-machine copied to clipboard

Automatically add causation id

Open codeliner opened this issue 7 years ago • 0 comments

Detect dispatch sessions automatically by using causation id and nesting level

Each call to $eventMachine->on() should add a nesting level. Each call to $eventMachine->dispatch() should remove a nesting level.

First call to $eventMachine->dispatch() should use message.uuid as causation id.

Nesting level + causation id should be set in message metadata.

codeliner avatar Dec 17 '17 20:12 codeliner