Skip to content

Message envelope: CloudEvents attributes and header mapping #1

Closed

Description

@thomhurst

Define how a message is represented on the wire, independent of transport (design §4.2, decision D7).

Scope

  • Generate message IDs as UUIDv7 (Guid.CreateVersion7()), written to ce_id.
  • Write the CloudEvents attributes ce_id, ce_type (from MessageType), ce_source, ce_time, ce_specversion, plus traceparent and tracestate.
  • Define a transport-neutral header abstraction that each transport maps to its native headers or properties (binary-mode binding). Headers must be read lazily from the native message.
  • Support a raw mode with no envelope, where the user maps the message type from something else (for example the topic name).

Acceptance criteria

  • Round-trip tests for the header abstraction.
  • No allocations when headers are not accessed.

See docs/design.md and docs/decisions.md.

Activity

  1. added
    phase-0: core
    area: core
    P0
    in-progress
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0area: corein-progressphase-0: core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions