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 TypeMethodDescriptionvoid
onRegistration
(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:MetricRegistrationObserver
Notifies the observer that a metric has been registered due to a metric annotation that applies to an executable.- Specified by:
onRegistration
in interfaceMetricRegistrationObserver
- Parameters:
discovery
- theMetricAnnotationDiscovery
triggering this metric registrationmetadata
- the metricsMetadata
for the indicated metricmetricId
- theMetricID
for the indicated metricmetric
- the metric associated with the discovery index
-