Class ClientTracingInterceptor

  • All Implemented Interfaces:
    io.grpc.ClientInterceptor

    @Priority(1001)
    public class ClientTracingInterceptor
    extends Object
    implements io.grpc.ClientInterceptor
    A ClientInterceptor that captures tracing information into Open Tracing Spans for client calls.
    • Method Detail

      • intercept

        public io.grpc.Channel intercept​(io.grpc.Channel channel)
        Use this interceptor to trace all requests made by this client channel.
        Parameters:
        channel - to be traced
        Returns:
        intercepted channel
      • interceptCall

        public <ReqT,​RespT> io.grpc.ClientCall<ReqT,​RespT> interceptCall​(io.grpc.MethodDescriptor<ReqT,​RespT> method,
                                                                                     io.grpc.CallOptions callOptions,
                                                                                     io.grpc.Channel next)
        Specified by:
        interceptCall in interface io.grpc.ClientInterceptor