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