Package io.dapr.client
Class DaprTracingInterceptor
java.lang.Object
io.dapr.client.DaprTracingInterceptor
- All Implemented Interfaces:
io.grpc.ClientInterceptor
Injects tracing headers to gRPC metadata.
-
Constructor Summary
ConstructorDescriptionDaprTracingInterceptor
(reactor.util.context.ContextView context) Creates an instance of the injector for gRPC context from Reactor's context. -
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
io.grpc.ClientCall<ReqT,RespT> interceptCall
(io.grpc.MethodDescriptor<ReqT, RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel channel)
-
Constructor Details
-
DaprTracingInterceptor
public DaprTracingInterceptor(reactor.util.context.ContextView context) Creates an instance of the injector for gRPC context from Reactor's context.- Parameters:
context
- Reactor's context
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel channel) - Specified by:
interceptCall
in interfaceio.grpc.ClientInterceptor
-