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 Span
s for client calls.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builds the configuration of a ClientTracingInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionObtain 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 Details
-
builder
Obtain a builder to build aClientTracingInterceptor
.- Parameters:
tracer
- theTracer
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 interfaceio.grpc.ClientInterceptor
-