public class ObservationRequestEventListener extends Object implements RequestEventListener
RequestEventListener
recording observations for Jersey server requests.Constructor and Description |
---|
ObservationRequestEventListener(io.micrometer.observation.ObservationRegistry registry,
String metricName) |
ObservationRequestEventListener(io.micrometer.observation.ObservationRegistry registry,
String metricName,
JerseyObservationConvention customConvention) |
Modifier and Type | Method and Description |
---|---|
void |
onEvent(RequestEvent event)
The method is called when new request event occurs.
|
public ObservationRequestEventListener(io.micrometer.observation.ObservationRegistry registry, String metricName)
public ObservationRequestEventListener(io.micrometer.observation.ObservationRegistry registry, String metricName, JerseyObservationConvention customConvention)
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.