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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(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: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
-