Skip to content

feat(metrics): instrument extension implementations with core/metrics#112

Merged
behinddwalls merged 1 commit into
mainfrom
preetam/metrics
Mar 4, 2026
Merged

feat(metrics): instrument extension implementations with core/metrics#112
behinddwalls merged 1 commit into
mainfrom
preetam/metrics

Conversation

@behinddwalls
Copy link
Copy Markdown
Collaborator

@behinddwalls behinddwalls commented Mar 3, 2026

Summary

  • Add metrics.Begin/Complete lifecycle tracking to all uninstrumented extension implementations: counter/mysql, storage/mysql (all 6 stores), scorer/heuristic, and scorer/composite
  • Each constructor now accepts a tally.Scope and every interface method emits called/succeeded/failed counters plus latency timers with error classification tags
  • Update all call sites (gateway, orchestrator, integration tests, unit tests) to pass the scope parameter

Test plan

  • All unit tests pass (make test — 24/24 passing)
  • Full build succeeds (make build)
  • make gazelle confirms BUILD files are in sync
  • Integration tests pass with tally.NoopScope (Docker-based, run in CI)

@behinddwalls behinddwalls requested review from a team and sbalabanov as code owners March 3, 2026 08:47
Comment thread extension/counter/mysql/counter.go
@behinddwalls behinddwalls enabled auto-merge March 4, 2026 03:30
auto-merge was automatically disabled March 4, 2026 03:36

Pull request was closed

@behinddwalls behinddwalls deleted the preetam/metrics branch March 4, 2026 03:36
@behinddwalls behinddwalls restored the preetam/metrics branch March 4, 2026 03:42
@behinddwalls behinddwalls reopened this Mar 4, 2026
@behinddwalls behinddwalls enabled auto-merge March 4, 2026 03:44
@behinddwalls behinddwalls disabled auto-merge March 4, 2026 03:57
Add metrics.Begin/Complete lifecycle tracking to all uninstrumented
extension implementations: counter/mysql, storage/mysql (all 6 stores),
scorer/heuristic, and scorer/composite. Each constructor now accepts a
tally.Scope and every interface method emits called/succeeded/failed
counters plus latency timers.
@behinddwalls behinddwalls enabled auto-merge March 4, 2026 04:01
@behinddwalls behinddwalls added this pull request to the merge queue Mar 4, 2026
Merged via the queue into main with commit 5aa1dae Mar 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants