• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Chaguar / committer / 32946289633
91%

Build:
DEFAULT BRANCH: main
Ran 26 Aug 2026 08:13AM UTC
Jobs 3
Files 133
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Aug 2026 08:09AM UTC coverage: 90.466% (+0.3%) from 90.14%
32946289633

push

github

web-flow
[monitoring] Add gRPC metrics collection via stats handler (#748)

#### Type of change

- Improvement (improvement to code, performance, etc)

#### Description

* Generalize the server-side `stats.Handler` (`ServerStatsHandler`) to
collect RPC-level metrics from gRPC callbacks, so services no longer
need to record these metrics within their RPC methods.
* Record the following metrics, all labeled by the full gRPC method
name:
  * `requests_total` — Number of RPCs started by the service.
* `requests_latency_seconds{method,status}` — unary RPC latency, where
`status` is the gRPC status code.
* `stream_duration_seconds{method,status}` — the total duration of a
streaming RPC, from start to finish.
* `active_streams` and `active_connections` — the number of in-flight
streams and open connections.
* Remove the metrics logic from the notifier and verifier stream
handlers and from the query service RPCs.

#### Additional details

* The dashboard-breaking metric changes: the query service's method
label values become full gRPC method names,
queryservice_grpc_requests_latency_seconds gains a status label,
verifier_server_grpc_active_streams goes from an unlabeled gauge to a
{method} vector, and sidecar_notifier_active_streams is removed in
favour of sidecar_grpc_active_streams{method=...}.
* The grpcerror.WrapInvalidArgument relocation in
service/query/query_service.go — identical behaviour.


#### Related issues

- partially resolves #709

---------

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>
Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

104 of 107 new or added lines in 13 files covered. (97.2%)

2 existing lines in 1 file now uncovered.

9271 of 10248 relevant lines covered (90.47%)

12692.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
92.5
utils/serve/server_stats.go

Coverage Regressions

Lines Coverage ∆ File
2
94.74
-2.11% mock/vcservice.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 32946289633.1 26 Aug 2026 08:13AM UTC 133
78.22
GitHub Action Run
2 core-db-test - 32946289633.2 26 Aug 2026 08:13AM UTC 102
48.07
GitHub Action Run
3 unit-test - 32946289633.3 26 Aug 2026 08:15AM UTC 95
84.78
GitHub Action Run
Source Files on build 32946289633
  • Tree
  • List 133
  • Changed 27
  • Source Changed 0
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4fa954f8 on github
  • Prev Build on main (#32850865063)
  • Next Build on main (#32955723987)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc