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.
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds
NewEventsourcedMetrics()returning aneventsourced.MetricsRecorderthat maps framework Metric values onto OTel instruments on the global MeterProvider. To be wired viapg.WithMetricsandeventsourced.WithMetricsacross all services.Reviewed by Go Backend Expert; applied second-scale histogram buckets, consistent metric naming, dropped redundant counters, added a manual-reader contract test.
Coverage Report
Total coverage: 23%