feat: add eventsourced MetricsRecorder adapter for OpenTelemetry #142

Merged
argoyle merged 1 commits from feat/eventsourced-metrics into main 2026-05-26 17:57:28 +00:00
Owner

Adds NewEventsourcedMetrics() returning an eventsourced.MetricsRecorder that maps framework Metric values onto OTel instruments on the global MeterProvider. To be wired via pg.WithMetrics and eventsourced.WithMetrics across all services.

Reviewed by Go Backend Expert; applied second-scale histogram buckets, consistent metric naming, dropped redundant counters, added a manual-reader contract test.

Adds `NewEventsourcedMetrics()` returning an `eventsourced.MetricsRecorder` that maps framework Metric values onto OTel instruments on the global MeterProvider. To be wired via `pg.WithMetrics` and `eventsourced.WithMetrics` across all services. Reviewed by Go Backend Expert; applied second-scale histogram buckets, consistent metric naming, dropped redundant counters, added a manual-reader contract test.
argoyle added 1 commit 2026-05-26 17:48:16 +00:00
feat: add eventsourced MetricsRecorder adapter for OpenTelemetry
otelsetup / vulnerabilities (pull_request) Successful in 1m52s
otelsetup / test (pull_request) Successful in 2m47s
pre-commit / pre-commit (pull_request) Successful in 6m2s
e2ab131684
NewEventsourcedMetrics returns an eventsourced.MetricsRecorder that maps the
framework's Metric values (command duration, event store/load, snapshots,
idempotency checks) onto OTel instruments on the global MeterProvider set by
SetupOTelSDK. Intended for pg.WithMetrics and eventsourced.WithMetrics.
argoyle scheduled this pull request to auto merge when all checks succeed 2026-05-26 17:48:41 +00:00

Coverage Report

Total coverage: 23%

## Coverage Report Total coverage: **23%**
argoyle merged commit 7bc3101cee into main 2026-05-26 17:57:28 +00:00
argoyle deleted branch feat/eventsourced-metrics 2026-05-26 17:57:29 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shiny/otelsetup#142