@ConfigurationProperties(value="grpc.server.tracing")
public class GrpcServerTracingInterceptorConfiguration
extends java.lang.Object
ServerTracingInterceptor
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.ServerTracingInterceptor.Builder |
builder |
static java.lang.String |
PREFIX |
Modifier | Constructor and Description |
---|---|
protected |
GrpcServerTracingInterceptorConfiguration(io.opentracing.Tracer tracer) |
Modifier and Type | Method and Description |
---|---|
io.opentracing.contrib.grpc.ServerTracingInterceptor.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.ServerTracingInterceptor.Builder builder
protected GrpcServerTracingInterceptorConfiguration(io.opentracing.Tracer tracer)
@Nonnull public io.opentracing.contrib.grpc.ServerTracingInterceptor.Builder getBuilder()
ServerTracingInterceptor.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