Class GrpcTracingInterceptor

java.lang.Object
io.helidon.webserver.grpc.tracing.GrpcTracingInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

public class GrpcTracingInterceptor extends Object implements io.grpc.ServerInterceptor
A ServerInterceptor that adds tracing to gRPC service calls. Use the GrpcServerService SPI to load this class by adding a dependency on io.helidon.webserver:io.helidon.webserver.grpc-tracing instead.
  • Method Details

    • create

      public static GrpcTracingInterceptor create(Tracer tracer, GrpcTracingConfig config)
      Create a GrpcTracingInterceptor interceptor.
      Parameters:
      tracer - the Open Tracing Tracer
      config - the tracing configuration
      Returns:
      a GrpcTracingInterceptor interceptor instance
    • interceptCall

      public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
      Specified by:
      interceptCall in interface io.grpc.ServerInterceptor