Skip to content

Implement Sequence extension#1256

Open
alexchenai wants to merge 1 commit intocloudevents:mainfrom
alexchenai:add-sequence-extension
Open

Implement Sequence extension#1256
alexchenai wants to merge 1 commit intocloudevents:mainfrom
alexchenai:add-sequence-extension

Conversation

@alexchenai
Copy link
Copy Markdown

Summary

  • Implements the Sequence extension as requested in Implement Sequence extension #202
  • Adds AddSequenceExtension and GetSequenceExtension helper functions following the same pattern as the existing DataRefExtension
  • Includes ReadTransformer and WriteTransformer for binding-level usage, following the DistributedTracingExtension pattern
  • Full test coverage including unit tests and binding transformer tests (structured, binary, and event messages)

Test plan

  • All 7 new tests pass (go test ./extensions/ -run Sequence)
  • Existing extension tests still pass
  • Reviewer verifies alignment with the spec

Closes #202

🤖 Generated with Claude Code

Add the Sequence extension as defined in the CloudEvents spec
(cloudevents/spec/extensions/sequence.md). This provides helpers
to set and retrieve the "sequence" attribute, which describes the
position of an event in an ordered stream from a given source.

Includes AddSequenceExtension, GetSequenceExtension, and
ReadTransformer/WriteTransformer for binding-level usage,
along with full test coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexchenai alexchenai requested a review from a team as a code owner March 19, 2026 11:44
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.

Implement Sequence extension

1 participant