Skip to content

Instrument consume composition with metrics and generated logging #84

Closed

Description

@thomhurst

Implement the metrics and generated logging scope of #14 (design §8.1, §8.4–8.6 and D15/D25).

Scope and acceptance criteria:

  • One DI-owned Meter named Relayer, with a pinned semantic-conventions schema URL; no mutable process-wide state.
  • All convention and Relayer instruments from design §8.4, including seconds-based histograms with recommended bucket advice.
  • A transport-author endpoint recorder with precomputed low-cardinality tags. Tests use MeterListener to verify names, units, required tags, counters, errors, and histogram advice.
  • Instrument the existing consume composition, with an explicit native settlement callback so process duration includes settlement. Count deliveries once, including failed deliveries; do not change transport settlement semantics.
  • Source-generated LoggerMessage failure logging, with exception, trace/span IDs and scopes for message ID, stable message type and correlation ID. Disabled logging preserves lazy header reads and allocates nothing.
  • Benchmarks compare the consume composition with metrics disabled and enabled, with and without a listener. Preserve Native AOT and pooling contracts.

Owns src/Relayer/Telemetry/, consume/receive integration, related unit tests, benchmarks, and usage docs. Health registration is a separate sibling deliverable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area: telemetryin-progressphase-0: core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions