Skip to content

Add CorrelationExtension for event tracking#1249

Open
tonicospinelli wants to merge 1 commit intocloudevents:mainfrom
tonicospinelli:extension-correlation
Open

Add CorrelationExtension for event tracking#1249
tonicospinelli wants to merge 1 commit intocloudevents:mainfrom
tonicospinelli:extension-correlation

Conversation

@tonicospinelli
Copy link
Copy Markdown

Introduced the CorrelationExtension to support event relationship tracking using correlation and causation IDs.

  • Added correlationid and causationid attributes
  • Implemented sample sender and receiver for HTTP workflows
  • Included detailed README documentation and test coverage

Simplified the DistributedTracingExtension implementation by replacing manual reflection-based logic with utility functions, improving readability and maintainability.

  • Replaced manual extension handling with AttachExtensions and ExtractExtensions helpers
  • Added unit tests for missing and present tracing extensions
  • Reduced redundant code in read/write transformers

This enables users to track complex distributed event flows and follow the Correlation Extension spec

Introduced the `CorrelationExtension` to support event relationship
tracking using correlation and causation IDs.

- Added `correlationid` and `causationid` attributes
- Implemented sample sender and receiver for HTTP workflows
- Included detailed README documentation and test coverage

Simplified the `DistributedTracingExtension` implementation by
replacing manual reflection-based logic with utility functions,
improving readability and maintainability.

- Replaced manual extension handling with `AttachExtensions` and
  `ExtractExtensions` helpers
- Added unit tests for missing and present tracing extensions
- Reduced redundant code in read/write transformers

This enables users to track complex distributed event flows.

Signed-off-by: Antonio Spinelli <tonicospinelli85@gmail.com>
@tonicospinelli tonicospinelli requested a review from a team as a code owner March 3, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant