public class ServerTracingInterceptor extends Object implements io.grpc.ServerInterceptor
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerTracingInterceptor.Builder
Builds the configuration of a ServerTracingInterceptor.
|
static class |
ServerTracingInterceptor.ServerRequestAttribute |
| Constructor and Description |
|---|
ServerTracingInterceptor()
Instantiate interceptor using GlobalTracer to get tracer
|
ServerTracingInterceptor(io.opentracing.Tracer tracer) |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.ServerServiceDefinition |
intercept(io.grpc.BindableService bindableService)
Add tracing to all requests made to this service.
|
io.grpc.ServerServiceDefinition |
intercept(io.grpc.ServerServiceDefinition serviceDef)
Add tracing to all requests made to this service.
|
<ReqT,RespT> |
interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next) |
public ServerTracingInterceptor()
public ServerTracingInterceptor(io.opentracing.Tracer tracer)
tracer - used to trace requestspublic io.grpc.ServerServiceDefinition intercept(io.grpc.ServerServiceDefinition serviceDef)
serviceDef - of the service to interceptpublic io.grpc.ServerServiceDefinition intercept(io.grpc.BindableService bindableService)
bindableService - to interceptpublic <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<ReqT,RespT> next)
interceptCall in interface io.grpc.ServerInterceptorCopyright © 2017-2019–2019. All rights reserved.