Package io.micronaut.grpc.client.tracing
Class GrpcClientTracingInterceptorConfiguration
java.lang.Object
io.micronaut.grpc.client.tracing.GrpcClientTracingInterceptorConfiguration
@ConfigurationProperties("grpc.client.tracing")
public class GrpcClientTracingInterceptorConfiguration
extends Object
Adds a 
TracingClientInterceptor when OpenTracing for GRPC is on the classpath
 and allows integration with Zipkin and Jaeger.- Since:
 - 1.0
 - Author:
 - graemerocher
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcClientTracingInterceptorConfiguration(io.opentracing.Tracer tracer) Default constructor. - 
Method Summary
Modifier and TypeMethodDescriptionio.opentracing.contrib.grpc.TracingClientInterceptor.BuildervoidsetClientCloseDecorator(@Nullable io.opentracing.contrib.grpc.ClientCloseDecorator clientCloseDecorator) Decorates the server span with custom data when the gRPC call is closed.voidsetClientSpanDecorator(@Nullable io.opentracing.contrib.grpc.ClientSpanDecorator clientSpanDecorator) Decorates the server span with custom data. 
- 
Field Details
- 
PREFIX
- See Also:
 
 - 
builder
@ConfigurationBuilder(prefixes="with", allowZeroArgs=true) protected final io.opentracing.contrib.grpc.TracingClientInterceptor.Builder builder 
 - 
 - 
Constructor Details
- 
GrpcClientTracingInterceptorConfiguration
protected GrpcClientTracingInterceptorConfiguration(io.opentracing.Tracer tracer) Default constructor.- Parameters:
 tracer- The tracer
 
 - 
 - 
Method Details
- 
getBuilder
@NonNull public io.opentracing.contrib.grpc.TracingClientInterceptor.Builder getBuilder()- Returns:
 - The 
TracingClientInterceptor.Builder 
 - 
setClientSpanDecorator
@Inject public void setClientSpanDecorator(@Nullable @Nullable io.opentracing.contrib.grpc.ClientSpanDecorator clientSpanDecorator) Decorates the server span with custom data.- Parameters:
 clientSpanDecorator- used to decorate the server span
 - 
setClientCloseDecorator
@Inject public void setClientCloseDecorator(@Nullable @Nullable io.opentracing.contrib.grpc.ClientCloseDecorator clientCloseDecorator) Decorates the server span with custom data when the gRPC call is closed.- Parameters:
 clientCloseDecorator- used to decorate the server span
 
 -