Class GrpcMetricRegistrationObserver
java.lang.Object
io.helidon.microprofile.grpc.metrics.GrpcMetricRegistrationObserver
- All Implemented Interfaces:
MetricRegistrationObserver
The gRPC implementation of
MetricRegistrationObserver with a static factory method.-
Method Summary
Modifier and TypeMethodDescriptionvoidonRegistration(MetricAnnotationDiscovery discovery, Metadata metadata, MetricID metricId, Metric metric) Notifies the observer that a metric has been registered due to a metric annotation that applies to an executable.
-
Method Details
-
onRegistration
public void onRegistration(MetricAnnotationDiscovery discovery, Metadata metadata, MetricID metricId, Metric metric) Description copied from interface:MetricRegistrationObserverNotifies the observer that a metric has been registered due to a metric annotation that applies to an executable.- Specified by:
onRegistrationin interfaceMetricRegistrationObserver- Parameters:
discovery- theMetricAnnotationDiscoverytriggering this metric registrationmetadata- the metricsMetadatafor the indicated metricmetricId- theMetricIDfor the indicated metricmetric- the metric associated with the discovery index
-