Skip to content

feat(telemetry): measure the seconds of each Service row - #4150

Merged
dan-petty merged 4 commits into
mainfrom
feat/4058-row-seconds
Nov 8, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/4058-row-seconds

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The histogram devops_cli_roadmap_row_seconds (unit s, labels repo, row, result) gives the seconds of each row of the roadmap Service. The Service times each row runner call and sends the sample once the result is known. A row that is not due, a suspended row and a row that a clone failure keeps from running add no sample.

Why: the counter devops_cli_service_job_seconds_total counts one lane round, so a slow row hides in the total of its lane. The 5 minute rule of AGENTS.md cannot be checked for one row (#4058).

Series count: at most 11 rows x 3 results = 33 per repository. Prometheus 3 stores the exponential histogram as one native histogram, so the buckets add no series. docs/TELEMETRY.md is regenerated.

Closes #4058

Change: openspec/changes/archive/2026-11-08-4058-row-seconds-histogram/

@dan-petty dan-petty added type/feature Type feature: a new function scope/telemetry OpenTelemetry tracing spans, Prometheus metrics, and Jaeger labels Nov 8, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4058.

  • Feat issue, so no fail-to-pass run. On the base (f16535fa), 8 of the 10 tests in tests/telemetry/test_roadmap_row_seconds.py fail (no sample, instrument not declared or documented). 2 pass as guards (a clone failure adds no sample; the census is 11 rows x 3 results).
  • Full uv run devops ci under the shared lock: all rows passed. The test row took 10 minutes 44 seconds (known fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593). One test of mine read __file__ and failed module_independence; commit 19f2a6f0 fixed it with REPO_ROOT, and the test-tree row reran with 12 cases and 0 failures.
  • uv run devops docs generate --check passes.
  • The branch is on origin/main (f16535fa); the rebase was a no-op.

Rollout rule: the change adds, removes, renames and tightens no setting. The example and live ConfigMap load as before, so the rule does not apply. Nothing was applied to the cluster.

Point to review: the CLI run (no lane) also adds a sample, because the instrument has no lane label.

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 12:45
@dan-petty
dan-petty merged commit aa772d6 into main Nov 8, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4058-row-seconds branch November 8, 2026 12:46
dan-petty pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.89.0](v0.88.1...v0.89.0)
(2026-11-08)


### Features

* **roadmap:** record the failure class and step of a stage item
([e017776](e017776))
* **roadmap:** record the failure class and step of a stage item
([#4153](#4153))
([e017776](e017776))
* **telemetry:** measure the seconds of each Service row
([#4150](#4150))
([aa772d6](aa772d6))


### Bug Fixes

* **k8s:** raise the roadmap service memory to 768Mi and 3Gi
([#4154](#4154))
([5c9fb88](5c9fb88))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/telemetry OpenTelemetry tracing spans, Prometheus metrics, and Jaeger type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(telemetry): measure the seconds of each row

1 participant