Class ClientTracingInterceptor

java.lang.Object
io.helidon.grpc.client.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 Tracing Spans for client calls.
  • Method Details

    • builder

      public static ClientTracingInterceptor.Builder builder(Tracer tracer)
      Obtain a builder to build a ClientTracingInterceptor.
      Parameters:
      tracer - the Tracer to use
      Returns:
      a builder to build a ClientTracingInterceptor
    • 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