public class MetricsRequestEventListener extends Object implements RequestEventListener
RequestEventListener
recording timings for Jersey server requests.Constructor and Description |
---|
MetricsRequestEventListener(io.micrometer.core.instrument.MeterRegistry registry,
JerseyTagsProvider tagsProvider,
String metricName,
boolean autoTimeRequests,
AnnotationFinder annotationFinder) |
Modifier and Type | Method and Description |
---|---|
void |
onEvent(RequestEvent event)
The method is called when new request event occurs.
|
public MetricsRequestEventListener(io.micrometer.core.instrument.MeterRegistry registry, JerseyTagsProvider tagsProvider, String metricName, boolean autoTimeRequests, AnnotationFinder annotationFinder)
public void onEvent(RequestEvent event)
RequestEventListener
RequestEvent.Type.START
as this event is handled by ApplicationEventListener
.onEvent
in interface RequestEventListener
event
- Request event.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.