Package io.grpc.internal
Class PickDetailsConsumerImpl
java.lang.Object
io.grpc.internal.PickDetailsConsumerImpl
- All Implemented Interfaces:
LoadBalancer.PickDetailsConsumer
Adapter for tracers into details consumers.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPickDetailsConsumerImpl(ClientStreamTracer[] tracers) Construct a consumer with unchanging tracers array. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOptionalLabel(String key, String value) Optional labels that provide context of how the pick was routed.
-
Field Details
-
tracers
-
-
Constructor Details
-
PickDetailsConsumerImpl
Construct a consumer with unchanging tracers array.
-
-
Method Details
-
addOptionalLabel
Description copied from interface:LoadBalancer.PickDetailsConsumerOptional labels that provide context of how the pick was routed. Particularly helpful for per-RPC metrics.- Specified by:
addOptionalLabelin interfaceLoadBalancer.PickDetailsConsumer
-