Class RetryMetricsBinder

java.lang.Object
io.micronaut.configuration.metrics.binder.retry.RetryMetricsBinder
All Implemented Interfaces:
io.micronaut.context.event.ApplicationEventListener<io.micronaut.retry.event.RetryEvent>, io.micronaut.retry.event.RetryEventListener, EventListener

@Requires(classes={io.micronaut.retry.event.RetryEventListener.class,io.micronaut.retry.event.RetryEvent.class}) @Requires(property="micronaut.metrics.binders.retry.enabled",notEquals="false",defaultValue="false") @Singleton @RequiresMetrics public class RetryMetricsBinder extends Object implements io.micronaut.retry.event.RetryEventListener
Instruments Micronaut retries via Micrometer.
Author:
Robert Young
  • Field Details

  • Constructor Details

    • RetryMetricsBinder

      public RetryMetricsBinder(io.micronaut.context.BeanProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistryProvider)
      Parameters:
      meterRegistryProvider - The meter registry provider
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(io.micronaut.retry.event.RetryEvent event)
      Specified by:
      onApplicationEvent in interface io.micronaut.context.event.ApplicationEventListener<io.micronaut.retry.event.RetryEvent>