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

grpc / grpc-java / #20233
89%

Build:
DEFAULT BRANCH: master
Ran 02 Apr 2026 12:30PM UTC
Jobs 1
Files 647
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

02 Apr 2026 12:18PM UTC coverage: 88.792% (+0.008%) from 88.784%
#20233

push

github

web-flow
[xds] Implement A114: WRR support for custom backend metrics (#12645)

### Description
This PR implements [gRFC A114: WRR Support for Custom Backend
Metrics](https://github.com/grpc/proposal/pull/536).

It updates the `weighted_round_robin` policy to allow users to configure
which backend metrics drive the load balancing weights.

### Key Changes
* **Configuration**: Supports the new
`metric_names_for_computing_utilization` field in
`WeightedRoundRobinLbConfig`.
* **Weight Calculation**: Implements logic to resolve custom metrics
(including map lookups like `named_metrics.foo`) when
`application_utilization` is absent.
* **Refactor**: Centralizes the complex metric lookup and validation
logic (checking for NaN, <= 0, etc.) into a new internal utility
`MetricReportUtils`.
* **Testing**: Verifies correct precedence: `application_utilization` >
`custom_metrics` (max valid value) > `cpu_utilization`.

36007 of 40552 relevant lines covered (88.79%)

0.89 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
91.24
0.26% ../xds/src/main/java/io/grpc/xds/LoadBalancerConfigFactory.java
5
98.55
0.07% ../xds/src/main/java/io/grpc/xds/WeightedRoundRobinLoadBalancer.java
2
87.75
-0.4% ../core/src/main/java/io/grpc/internal/DelayedClientCall.java
2
75.0
-1.72% ../servlet/src/main/java/io/grpc/servlet/ServletServerStream.java
2
89.19
1.31% ../xds/src/main/java/io/grpc/xds/WeightedRoundRobinLoadBalancerProvider.java
1
93.83
-0.62% ../opentelemetry/src/main/java/io/grpc/opentelemetry/OpenTelemetryMetricSink.java
Jobs
ID Job ID Ran Files Coverage
1 #20233.1 02 Apr 2026 12:30PM UTC 647
88.79
Source Files on build #20233
  • Tree
  • List 647
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20233
  • d057a7eb on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc