Class MetricsRequestEventListener
java.lang.Object
org.glassfish.jersey.micrometer.server.MetricsRequestEventListener
- All Implemented Interfaces:
RequestEventListener
RequestEventListener
recording timings for Jersey server requests.- Since:
- 2.41
- Author:
- Michael Weirauch, Jon Schneider
-
Constructor Summary
ConstructorDescriptionMetricsRequestEventListener
(io.micrometer.core.instrument.MeterRegistry registry, JerseyTagsProvider tagsProvider, String metricName, boolean autoTimeRequests, AnnotationFinder annotationFinder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEvent
(RequestEvent event) The method is called when new request event occurs.
-
Constructor Details
-
MetricsRequestEventListener
public MetricsRequestEventListener(io.micrometer.core.instrument.MeterRegistry registry, JerseyTagsProvider tagsProvider, String metricName, boolean autoTimeRequests, AnnotationFinder annotationFinder)
-
-
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.
-