Class ObservationRequestEventListener
java.lang.Object
org.glassfish.jersey.micrometer.server.ObservationRequestEventListener
- All Implemented Interfaces:
RequestEventListener
RequestEventListener
recording observations for Jersey server requests.- Since:
- 2.41
- Author:
- Marcin Grzejszczak
-
Constructor Summary
ConstructorDescriptionObservationRequestEventListener
(io.micrometer.observation.ObservationRegistry registry, String metricName) ObservationRequestEventListener
(io.micrometer.observation.ObservationRegistry registry, String metricName, JerseyObservationConvention customConvention) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEvent
(RequestEvent event) The method is called when new request event occurs.
-
Constructor Details
-
ObservationRequestEventListener
public ObservationRequestEventListener(io.micrometer.observation.ObservationRegistry registry, String metricName) -
ObservationRequestEventListener
public ObservationRequestEventListener(io.micrometer.observation.ObservationRegistry registry, String metricName, JerseyObservationConvention customConvention)
-
-
Method Details
-
onEvent
Description copied from interface:RequestEventListener
The method is called when new request event occurs. This method will never be called for methodRequestEvent.Type.START
as this event is handled byApplicationEventListener
.- Specified by:
onEvent
in interfaceRequestEventListener
- Parameters:
event
- Request event.
-