Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correlation and causation ids #105

Merged
merged 7 commits into from
Nov 3, 2017

Conversation

slashdotdash
Copy link
Member

@slashdotdash slashdotdash commented Nov 3, 2017

To assist with monitoring and debugging your deployed application it is useful to track the causation and correlation ids for your commands and events.

  • causation_id - the UUID of the command creating an event, or the event causing a command dispatch.
  • correlation_id - a UUID used to correlate related commands/events.

This pull request allows you to set causation and correlation ids when dispatching a command:

:ok = ExampleRouter.dispatch(command, causation_id: UUID.uuid4(), correlation_id: UUID.uuid4())

Commands dispatched by a process manager will be automatically assigned the appropriate causation and correlation ids from the source domain event.

Fixes #70.

@slashdotdash slashdotdash force-pushed the feature/correlation-causation-ids branch from 40c6f0f to e5d66a2 Compare November 3, 2017 10:20
@slashdotdash slashdotdash merged commit 5cc05a3 into master Nov 3, 2017
@slashdotdash slashdotdash deleted the feature/correlation-causation-ids branch November 3, 2017 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant