Package io.helidon.grpc.client
Class ClientTracingInterceptor
- java.lang.Object
-
- io.helidon.grpc.client.ClientTracingInterceptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientTracingInterceptor.Builder
Builds the configuration of a ClientTracingInterceptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientTracingInterceptor.Builder
builder(Tracer tracer)
Obtain a builder to build aClientTracingInterceptor
.io.grpc.Channel
intercept(io.grpc.Channel channel)
Use this interceptor to trace all requests made by this client channel.<ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
-
-
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 interfaceio.grpc.ClientInterceptor
-
builder
public static ClientTracingInterceptor.Builder builder(Tracer tracer)
Obtain a builder to build aClientTracingInterceptor
.- Parameters:
tracer
- theTracer
to use- Returns:
- a builder to build a
ClientTracingInterceptor
-
-