Skip to content

refactor(graphrunner): route metrics through observability/metrics Emitter#217

Open
xytan0056 wants to merge 1 commit into
pr3-orchestrator-metricsfrom
pr4-graphrunner-metrics
Open

refactor(graphrunner): route metrics through observability/metrics Emitter#217
xytan0056 wants to merge 1 commit into
pr3-orchestrator-metricsfrom
pr4-graphrunner-metrics

Conversation

@xytan0056

@xytan0056 xytan0056 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Ports the native graph runner off raw tally.Scope to *metrics.Emitter.

  • Params keeps Scope tally.Scope; the runner builds its own emitter and emits under op graph_runner (nested beneath the orchestrator scope it's handed).
  • Three phase Timers → DurationHistogram (bazel_query_duration, git_file_hashes_duration, target_hash_duration); target_count GaugeValueHistogram.
  • Buckets package-level in graphrunner/metrics.go. core/bazel intentionally left uninstrumented — the query is already timed here.
  1. refactor(orchestrator): route metrics through observability/metrics Emitter #216.

@xytan0056
xytan0056 requested review from a team as code owners July 17, 2026 21:10
@xytan0056
xytan0056 force-pushed the pr3-orchestrator-metrics branch from d203b30 to 28b8209 Compare July 17, 2026 21:22
@xytan0056
xytan0056 force-pushed the pr4-graphrunner-metrics branch from 2a9c525 to 7baf10f Compare July 17, 2026 21:22
@xytan0056
xytan0056 force-pushed the pr3-orchestrator-metrics branch from 28b8209 to 3b9c7e9 Compare July 17, 2026 21:41
@xytan0056
xytan0056 force-pushed the pr4-graphrunner-metrics branch 3 times, most recently from 14bc8a6 to 098f66b Compare July 17, 2026 21:46
@xytan0056
xytan0056 force-pushed the pr3-orchestrator-metrics branch from 3b9c7e9 to 97b3839 Compare July 17, 2026 21:47
@xytan0056
xytan0056 force-pushed the pr4-graphrunner-metrics branch from 098f66b to 1f78e24 Compare July 17, 2026 21:47
@xytan0056 xytan0056 changed the title [WIP] refactor(graphrunner): route metrics through observability/metrics Emitter refactor(graphrunner): route metrics through observability/metrics Emitter Jul 17, 2026
…itter

Port the native graph runner off raw tally.Scope to the emitter.

- Params keeps Scope tally.Scope; the runner subscopes to graph_runner and
  builds its own emitter, emitting under op compute (snake of GraphRunner.Compute).
- Three phase Timers -> DurationHistogram (bazel_query/git_file_hashes/
  target_hash_duration); target_count Gauge -> ValueHistogram.
- Op const + buckets live in graphrunner/metrics.go.
@xytan0056
xytan0056 force-pushed the pr3-orchestrator-metrics branch from 97b3839 to 57d3c09 Compare July 17, 2026 23:10
@xytan0056
xytan0056 force-pushed the pr4-graphrunner-metrics branch from 1f78e24 to 6938065 Compare July 17, 2026 23:10
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.

1 participant