Class GrpcMetricsCdiExtension
- java.lang.Object
-
- io.helidon.microprofile.grpc.metrics.GrpcMetricsCdiExtension
-
- All Implemented Interfaces:
Extension
public class GrpcMetricsCdiExtension extends Object implements Extension
A CDI extension for gRPC metrics.This extension will process annotated types that are gRPC methods and ensure that those methods re properly intercepted with a gRPC metrics
ServerInterceptor
.If a method is discovered that is annotated with both a metrics annotation and a gRPC method type annotation they metrics annotation will be effectively removed from the CDI bean so that normal Helidon metrics interceptors do not also intercept that method.