Class MetricsApplicationEventListener

java.lang.Object
io.micrometer.jersey2.server.MetricsApplicationEventListener
All Implemented Interfaces:
org.glassfish.jersey.server.monitoring.ApplicationEventListener

public class MetricsApplicationEventListener extends Object implements org.glassfish.jersey.server.monitoring.ApplicationEventListener
The Micrometer ApplicationEventListener which registers RequestEventListener for instrumenting Jersey server requests.
  • Constructor Details

    • MetricsApplicationEventListener

      public MetricsApplicationEventListener(io.micrometer.core.instrument.MeterRegistry registry, JerseyTagsProvider tagsProvider, String metricName, boolean autoTimeRequests)
    • MetricsApplicationEventListener

      public MetricsApplicationEventListener(io.micrometer.core.instrument.MeterRegistry registry, JerseyTagsProvider tagsProvider, String metricName, boolean autoTimeRequests, AnnotationFinder annotationFinder)
  • Method Details

    • onEvent

      public void onEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event)
      Specified by:
      onEvent in interface org.glassfish.jersey.server.monitoring.ApplicationEventListener
    • onRequest

      public org.glassfish.jersey.server.monitoring.RequestEventListener onRequest(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
      Specified by:
      onRequest in interface org.glassfish.jersey.server.monitoring.ApplicationEventListener