feat(civisibility): add pagination metrics for known tests fetch#5024
feat(civisibility): add pagination metrics for known tests fetch#5024calvinbayer wants to merge 1 commit into
Conversation
|
Add three new distribution metrics to track known tests pagination: - civisibility.known_tests.pages_fetched - number of pages fetched - civisibility.known_tests.total_fetch_ms - wall-clock time for entire fetch - civisibility.known_tests.total_request_ms - sum of per-page request times Metrics are emitted only on successful completion of pagination. Changes: - Added telemetry helper functions in telemetry_distribution.go - Updated FetchKnownTests to track timing and emit metrics - Manually registered metrics in known_metrics.common.go Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ab281d7 to
04be4fa
Compare
BenchmarksBenchmark execution time: 2026-07-13 12:16:20 Comparing candidate commit 04be4fa in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 326 metrics, 0 unstable metrics, 1 flaky benchmarks without significant changes.
|
What does this PR do?
Adds three new distribution metrics to track known tests (Early Flake Detection) pagination behavior:
civisibility.known_tests.pages_fetched- Number of pages fetched during paginationcivisibility.known_tests.total_fetch_ms- Wall-clock time from first to last page requestcivisibility.known_tests.total_request_ms- Sum of individual per-page request durationsMotivation
Currently, only per-request timing is tracked. These new metrics provide observability into:
Implementation Details
telemetry_distribution.goFetchKnownTestsinknown_tests_api.goto track timingknown_metrics.common.go(expected warnings during testing)Testing
Checklist