public class ClientTracingInterceptor extends Object implements io.grpc.ClientInterceptor
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientTracingInterceptor.Builder
Builds the configuration of a ClientTracingInterceptor.
|
static class |
ClientTracingInterceptor.ClientRequestAttribute |
| Constructor and Description |
|---|
ClientTracingInterceptor()
Instantiate interceptor using GlobalTracer to get tracer
|
ClientTracingInterceptor(io.opentracing.Tracer tracer) |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.Channel |
intercept(io.grpc.Channel channel)
Use this interceptor to trace all requests made by this client channel.
|
<ReqT,RespT> |
interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method,
io.grpc.CallOptions callOptions,
io.grpc.Channel next) |
public ClientTracingInterceptor()
public ClientTracingInterceptor(io.opentracing.Tracer tracer)
tracer - to use to trace requestspublic io.grpc.Channel intercept(io.grpc.Channel channel)
channel - to be tracedpublic <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method,
io.grpc.CallOptions callOptions,
io.grpc.Channel next)
interceptCall in interface io.grpc.ClientInterceptorCopyright © 2017-2019–2019. All rights reserved.