You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(telemetry): classify project metrics and upstream status snapshot instruments as gauges #1253
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/telemetryOpenTelemetry tracing spans, Prometheus metrics, and Jaegertype/bugType bug: the code does not do what it must
Point-in-time snapshot metrics (such as GitHub issue items by milestone, releases, commits per release, merged PRs per release, 14-day traffic view counts, stargazers, forks, and upstream service operational status codes) were declared as InstrumentKind.COUNTER rather than gauges.
Because short-lived CLI processes emit OTLP delta metrics, the collector's deltatocumulative processor accumulated snapshot values across periodic emissions rather than recording current states. This caused the Project & Engineering Velocity Grafana dashboard (project-metrics.json) to report vastly inflated numbers (e.g. 34,000+ closed items instead of ~120).
Remediation
Add InstrumentKind.GAUGE to instruments.py and route gauge emissions to tracer.record_gauge(...).
Reclassify snapshot inventory instruments (PROJECT_ITEMS_TOTAL, PROJECT_COMMITS_TOTAL, PROJECT_PRS_TOTAL, PROJECT_CI_RUNS_TOTAL, PROJECT_RELEASES_TOTAL, PROJECT_STARS_TOTAL, PROJECT_FORKS_TOTAL, PROJECT_TRAFFIC_*, UPSTREAM_SERVICE_STATUS, UPSTREAM_COMPONENT_STATUS) from COUNTER to GAUGE.
Update Panel 5 in project-metrics.json to compute interval per release by dividing sum by count.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/telemetryOpenTelemetry tracing spans, Prometheus metrics, and Jaegertype/bugType bug: the code does not do what it must
Activity
docs(agent): ground task-1253 tracking document (#1253)
fix(telemetry): classify project metrics and upstream status snapshot…
dan-petty-bot commentedon Oct 6, 2026
What changed
#1254, merged into
release/v0.2.27as 93fefaa.11 file(s) changed.
How it was verified
Check runs at 4a3f5bd:
Acceptance Criteria of
docs/agent/tasks/task-1253-classify-project-metrics-and-upstream-status-snapshot-instruments-as-gauges.md:InstrumentKind.GAUGEadded and supported byemit()andtracer.record_gauge().COUNTERtoGAUGE.project-metrics.jsoncomputes release interval per release using sum divided by count.docs/TELEMETRY.mdand changelog fragmentchangelog.d/1253.mdupdated.tests/test_telemetry_instruments.pyverifies gauge recording behavior.uv run devops cicompletes with 100% passing status.feat(release): v0.2.27 (#1257)