java.lang.Object
io.helidon.webserver.grpc.GrpcTracingInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
A
ServerInterceptor that adds tracing to gRPC service calls.-
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcTracingInterceptorcreate(Tracer tracer, GrpcTracingConfig config) Create aGrpcTracingInterceptorinterceptor.<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
Method Details
-
create
Create aGrpcTracingInterceptorinterceptor.- Parameters:
tracer- the Open TracingTracerconfig- the tracing configuration- Returns:
- a
GrpcTracingInterceptorinterceptor 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:
interceptCallin interfaceio.grpc.ServerInterceptor
-