Class MetricsApplicationEventListener

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

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

    Constructors 
    Constructor Description
    MetricsApplicationEventListener​(io.micrometer.core.instrument.MeterRegistry registry, JerseyTagsProvider tagsProvider, java.lang.String metricName, boolean autoTimeRequests)  
    MetricsApplicationEventListener​(io.micrometer.core.instrument.MeterRegistry registry, JerseyTagsProvider tagsProvider, java.lang.String metricName, boolean autoTimeRequests, AnnotationFinder annotationFinder)  
  • Method Summary

    Modifier and Type Method Description
    void onEvent​(org.glassfish.jersey.server.monitoring.ApplicationEvent event)  
    org.glassfish.jersey.server.monitoring.RequestEventListener onRequest​(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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