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

hyperledger / fabric-x-committer / 30253020917
91%

Build:
DEFAULT BRANCH: main
Ran 27 Jul 2026 09:16AM UTC
Jobs 3
Files 129
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

27 Jul 2026 09:13AM UTC coverage: 91.485%. First build
30253020917

push

github

web-flow
[sidecar, query] Add metric for active client connections (#706)

#### Type of change

- New feature
- Improvement (improvement to code)

#### Description

- Add a gRPC `stats.Handler` (`serve.ConnStatsHandler`) that tracks the
number of
open server-side connections in a Prometheus gauge - incrementing on
`ConnBegin`
  and decrementing on `ConnEnd`. It is attached to every gRPC server.
- A service opts in by registering a gauge from its own provider via
`serve.RegisterConnStatHandler` in `RegisterService`. Sidecar and query
do so,
exposing `sidecar_grpc_active_connections` and
`queryservice_grpc_active_connections`
  on their existing metrics endpoints.
- The gauge is held in an `atomic.Pointer`, so registering it is safe
even if it
  races the server handling connections.

#### Related issues

- resolves #705

---------

Signed-off-by: Dean Amar <Dean.Amar@ibm.com>

46 of 47 new or added lines in 7 files covered. (97.87%)

10346 of 11309 relevant lines covered (91.48%)

35950.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.83
utils/serve/conn_stats.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 30253020917.1 27 Jul 2026 09:18AM UTC 129
79.87
GitHub Action Run
2 core-db-test - 30253020917.2 27 Jul 2026 09:16AM UTC 99
46.2
GitHub Action Run
3 unit-test - 30253020917.3 27 Jul 2026 09:19AM UTC 94
84.63
GitHub Action Run
Source Files on build 30253020917
  • Tree
  • List 129
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ef7f22b4 on github
  • Prev Build on main (#29985380931)
  • Next Build on main (#30346792200)
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