Package io.micronaut.grpc.server.tracing
Class GrpcServerTracingInterceptorConfiguration
- java.lang.Object
-
- io.micronaut.grpc.server.tracing.GrpcServerTracingInterceptorConfiguration
-
@ConfigurationProperties("grpc.server.tracing") public class GrpcServerTracingInterceptorConfiguration extends java.lang.ObjectAdds aTracingServerInterceptorwhen OpenTracing for GRPC is on the classpath and allows integration with Zipkin and Jaeger.- Since:
- 1.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcServerTracingInterceptorConfiguration(io.opentracing.Tracer tracer)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opentracing.contrib.grpc.TracingServerInterceptor.BuildergetBuilder()voidsetServerCloseDecorator(io.opentracing.contrib.grpc.ServerCloseDecorator serverCloseDecorator)Decorates the server span with custom data when the gRPC call is closed.voidsetServerSpanDecorator(io.opentracing.contrib.grpc.ServerSpanDecorator serverSpanDecorator)Decorates the server span with custom data.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
builder
@ConfigurationBuilder(prefixes="with", allowZeroArgs=true) protected final io.opentracing.contrib.grpc.TracingServerInterceptor.Builder builder
-
-
Method Detail
-
getBuilder
@NonNull public io.opentracing.contrib.grpc.TracingServerInterceptor.Builder getBuilder()
- Returns:
- The
TracingServerInterceptor.Builder
-
setServerSpanDecorator
@Inject public void setServerSpanDecorator(@Nullable io.opentracing.contrib.grpc.ServerSpanDecorator serverSpanDecorator)Decorates the server span with custom data.- Parameters:
serverSpanDecorator- used to decorate the server span
-
setServerCloseDecorator
@Inject public void setServerCloseDecorator(@Nullable io.opentracing.contrib.grpc.ServerCloseDecorator serverCloseDecorator)Decorates the server span with custom data when the gRPC call is closed.- Parameters:
serverCloseDecorator- used to decorate the server span
-
-