Class MetricsConfigurer
java.lang.Object
io.helidon.microprofile.grpc.metrics.MetricsConfigurer
- All Implemented Interfaces:
AnnotatedServiceConfigurer
A
AnnotatedServiceConfigurer that adds a
gRPC metrics interceptor
to 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Class<?> serviceClass, Class<?> annotatedClass, ServiceDescriptor.Builder builder) Apply modifications to aServiceDescriptor.Builder.
-
Constructor Details
-
MetricsConfigurer
public MetricsConfigurer()
-
-
Method Details
-
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
-