Added Correlation and CausationId support in samples #109
oskardudycz
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Implemented correlation id and causation id for tracing operations fully.
Refactored previously existing
CorrelationIdMiddleware
by adding causation id handling and renamed it to more general TracingMiddleware. It takes correlation id and causation id from HTTP headers and caches them into TracingScope.TracingScope is also setting logging scope internally to keep Correlation id and causation id in logs. Thanks to that, the logic for tracing setup can be reused in middleware and subscriptions. The new causation id is generated based on the event id in subscriptions. Thanks to that, we can build the tree with a history of event handling.
Updated Optimistic Concurrency Scopes and generalised into AppendScope. It wraps both tracing and expected version handling. Pushed tracing metadata into Marten and EventStoreDB storage.
Replaced custom EventBus instead of Mediator one to have more flexibility (e.g. be able to create new DI and logging scopes).
This discussion was created from the release Added Correlation and CausationId support in samples.
Beta Was this translation helpful? Give feedback.
All reactions