Class MetricsConfigurer
- java.lang.Object
-
- io.helidon.microprofile.grpc.metrics.MetricsConfigurer
-
- All Implemented Interfaces:
AnnotatedServiceConfigurer
public class MetricsConfigurer extends Object implements AnnotatedServiceConfigurer
AAnnotatedServiceConfigurerthat adds agRPC metrics interceptorto an annotated gRPC service.Metric interceptors are only added to services where the method on the service class is annotated with a metric annotation. Any metric annotations on super classes or interfaces will be ignored.
-
-
Constructor Summary
Constructors Constructor Description MetricsConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Class<?> serviceClass, Class<?> annotatedClass, ServiceDescriptor.Builder builder)Apply modifications to aServiceDescriptor.Builder.
-
-
-
Method Detail
-
accept
public void accept(Class<?> serviceClass, Class<?> annotatedClass, ServiceDescriptor.Builder builder)
Description copied from interface:AnnotatedServiceConfigurerApply modifications to aServiceDescriptor.Builder.- Specified by:
acceptin interfaceAnnotatedServiceConfigurer- Parameters:
serviceClass- the annotated gRPC service classannotatedClass- the class with theGrpcannotationbuilder- the builder to modify
-
-