@ConfigurationProperties(value="grpc.server.tracing")
public class GrpcServerTracingInterceptorConfiguration
extends java.lang.Object
TracingServerInterceptor when OpenTracing for GRPC is on the classpath
and allows integration with Zipkin and Jaeger.| Modifier and Type | Field and Description |
|---|---|
protected io.opentracing.contrib.grpc.TracingServerInterceptor.Builder |
builder |
static java.lang.String |
PREFIX |
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcServerTracingInterceptorConfiguration(io.opentracing.Tracer tracer)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
io.opentracing.contrib.grpc.TracingServerInterceptor.Builder |
getBuilder() |
void |
setServerCloseDecorator(io.opentracing.contrib.grpc.ServerCloseDecorator serverCloseDecorator)
Decorates the server span with custom data when the gRPC call is closed.
|
void |
setServerSpanDecorator(io.opentracing.contrib.grpc.ServerSpanDecorator serverSpanDecorator)
Decorates the server span with custom data.
|
public static final java.lang.String PREFIX
@ConfigurationBuilder(prefixes="with",
allowZeroArgs=true)
protected final io.opentracing.contrib.grpc.TracingServerInterceptor.Builder builder
protected GrpcServerTracingInterceptorConfiguration(io.opentracing.Tracer tracer)
tracer - The tracer@NonNull public io.opentracing.contrib.grpc.TracingServerInterceptor.Builder getBuilder()
TracingServerInterceptor.Builder@Inject
public void setServerSpanDecorator(@Nullable
io.opentracing.contrib.grpc.ServerSpanDecorator serverSpanDecorator)
serverSpanDecorator - used to decorate the server span@Inject
public void setServerCloseDecorator(@Nullable
io.opentracing.contrib.grpc.ServerCloseDecorator serverCloseDecorator)
serverCloseDecorator - used to decorate the server span