Class GrpcClientTracingInterceptorFactory
java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.grpc.GrpcClientTracingInterceptorFactory
Builds the client Tracing interceptors.
- Since:
- 4.2.0
- Author:
- Nemanja Mikic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull io.grpc.ClientInterceptor
clientTracingInterceptor
(io.opentelemetry.api.OpenTelemetry openTelemetry)
-
Constructor Details
-
GrpcClientTracingInterceptorFactory
public GrpcClientTracingInterceptorFactory()
-
-
Method Details
-
clientTracingInterceptor
@NonNull @Singleton @Requires(beans=io.opentelemetry.api.OpenTelemetry.class) protected @NonNull io.grpc.ClientInterceptor clientTracingInterceptor(io.opentelemetry.api.OpenTelemetry openTelemetry) - Parameters:
openTelemetry
- OpenTelemetry- Returns:
- the client interceptor
-