Class ObservationApplicationEventListener

java.lang.Object
io.micrometer.core.instrument.binder.jersey.server.ObservationApplicationEventListener
All Implemented Interfaces:
org.glassfish.jersey.server.monitoring.ApplicationEventListener

public class ObservationApplicationEventListener extends Object implements org.glassfish.jersey.server.monitoring.ApplicationEventListener
The Micrometer ApplicationEventListener which registers RequestEventListener for instrumenting Jersey server requests with observations.
Since:
1.10.0
  • Constructor Details

    • ObservationApplicationEventListener

      public ObservationApplicationEventListener(io.micrometer.observation.ObservationRegistry observationRegistry, String metricName)
    • ObservationApplicationEventListener

      public ObservationApplicationEventListener(io.micrometer.observation.ObservationRegistry observationRegistry, String metricName, JerseyObservationConvention jerseyObservationConvention)
  • 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