@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2776")
public final class MonitoringService
extends io.grpc.instrumentation.v1alpha.MonitoringGrpc.MonitoringImplBase
An implementation of StatsManager must be available at runtime (determined via Stats.getStatsManager()) or instantiating this service will fail.
| Modifier and Type | Method and Description |
|---|---|
void |
getCanonicalRpcStats(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.CanonicalRpcStats> responseObserver) |
static MonitoringService |
getInstance()
Gets the singleton instance of the MonitoringService.
|
public static MonitoringService getInstance()
IllegalStateException - if Stats.getStatsManager() returns nullpublic void getCanonicalRpcStats(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<io.grpc.instrumentation.v1alpha.CanonicalRpcStats> responseObserver)
getCanonicalRpcStats in class io.grpc.instrumentation.v1alpha.MonitoringGrpc.MonitoringImplBase