Repository navigation
Labels
P1High priorityarea: telemetryTracing, metrics, logging, healthin-progressClaimed by an agentphase-0: coreCore abstractions, pipeline, generator, testing
Description
Implement design §8.4 and §8.6 (metrics, logging and health).
Scope
- A
MeternamedRelayerthat carries the telemetry schema URL of the pinned semantic conventions version. - Instruments from the OpenTelemetry messaging conventions:
messaging.client.operation.durationandmessaging.process.duration(histograms in seconds, with the recommended buckets given as instrument advice),messaging.client.sent.messagesandmessaging.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
TagListper endpoint, so recording does not allocate. LoggerMessagesource-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
MeterListenerthat check instrument names, units and required attributes (messaging.systemandmessaging.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
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
P1High priorityarea: telemetryTracing, metrics, logging, healthin-progressClaimed by an agentphase-0: coreCore abstractions, pipeline, generator, testing
Activity
thomhurst commentedon Nov 1, 2026
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.
thomhurst commentedon Nov 1, 2026
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.
thomhurst commentedon Nov 1, 2026
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.
docs: publish metrics and logging guide for #14 (#105)