Skip to content

Metrics, logging and health checks #14

Closed
2 of 2 issues completed
Closed

Description

@thomhurst

Implement design §8.4 and §8.6 (metrics, logging and health).

Scope

  • A Meter named Relayer that carries the telemetry schema URL of the pinned semantic conventions version.
  • Instruments from the OpenTelemetry messaging conventions: messaging.client.operation.duration and messaging.process.duration (histograms in seconds, with the recommended buckets given as instrument advice), messaging.client.sent.messages and messaging.client.consumed.messages (counters).
  • Process duration includes settlement.
  • The Relayer-specific instruments listed in design §8.4, with the units given there.
  • Metric attributes follow design §8.4 and are low-cardinality only. Tags come from a precomputed TagList per endpoint, so recording does not allocate.
  • LoggerMessage source-generated logging with scopes carrying message ID, type and correlation ID. Failures are logged with the exception and the trace and span IDs.
  • Health checks for transport connectivity, consumer liveness and outbox backlog.

Acceptance criteria

  • Tests using MeterListener that check instrument names, units and required attributes (messaging.system and messaging.operation.name).
  • Health checks registered through a single AddRelayerHealthChecks() call.

Foundation shipped: #4 in #68. Instrument the existing consume composition; telemetry currently exposes source-name constants only.

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

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    phase-0: core
    area: telemetry
    P1
    on Oct 31, 2026
  2. thomhurst commented on Nov 1, 2026

    @thomhurst
    OwnerAuthor

    Triage against origin/main: consume composition #4 shipped in #68; metrics, generated logging and health checks remain unimplemented. Replaced the stale prerequisite wording with the existing integration foundation.

  3. added
    in-progress
    on Nov 1, 2026
  4. thomhurst commented on Nov 1, 2026

    @thomhurst
    OwnerAuthor

    Split into two independently mergeable native sub-issues: #84 owns core metrics, logging and consume/settlement instrumentation; #85 owns health checks. Health integration needs a separate package to preserve the core's abstraction-only dependency policy (D19). This unit implements #84; #14 stays open until both acceptance scopes ship.

  5. added
    in-progress
    and removed
    in-progress
    on Nov 1, 2026
  6. thomhurst commented on Nov 1, 2026

    @thomhurst
    OwnerAuthor

    Acceptance audit against origin/main at 44e4b0d confirms the runtime criteria shipped in #86 (metrics, generated failure logs and settlement timing) and #98 (single-call health registration). All 83 focused TelemetryTests and HealthCheckTests pass. The remaining site documentation gap is addressed by draft PR #105, which closes this parent after review and merge. It moves the metrics guide into the site and fixes the stale health reference; the site production build passes.

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

    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