Class MetricsConfigurer
- java.lang.Object
-
- io.helidon.microprofile.grpc.metrics.MetricsConfigurer
-
- All Implemented Interfaces:
AnnotatedServiceConfigurer
public class MetricsConfigurer extends Object implements AnnotatedServiceConfigurer
AAnnotatedServiceConfigurer
that adds agRPC 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 Constructor Description MetricsConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(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:AnnotatedServiceConfigurer
Apply modifications to aServiceDescriptor.Builder
.- Specified by:
accept
in interfaceAnnotatedServiceConfigurer
- Parameters:
serviceClass
- the annotated gRPC service classannotatedClass
- the class with theGrpc
annotationbuilder
- the builder to modify
-
-