api: Return a noop MetricRecorder from Helper by default

Since 06df25b65d, WRR has been calling this method, and it will get an
exception. We don't want WRR to be broken until we have MetricRecorder
fully plumbed.
This commit is contained in:
Eric Anderson 2024-04-29 16:51:57 -07:00
parent 4c78a9746c
commit 27d57585cd
1 changed files with 1 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ public abstract class LoadBalancer {
*/ */
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/11110") @ExperimentalApi("https://github.com/grpc/grpc-java/issues/11110")
public MetricRecorder getMetricRecorder() { public MetricRecorder getMetricRecorder() {
throw new UnsupportedOperationException(); return new MetricRecorder() {};
} }
} }