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 TypeMethodDescriptionvoid
addOptionalLabel
(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.PickDetailsConsumer
Optional labels that provide context of how the pick was routed. Particularly helpful for per-RPC metrics.- Specified by:
addOptionalLabel
in interfaceLoadBalancer.PickDetailsConsumer
-