Class DefaultClientRequestObservationConvention
java.lang.Object
org.springframework.web.reactive.function.client.DefaultClientRequestObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<ClientRequestObservationContext>
,ClientRequestObservationConvention
public class DefaultClientRequestObservationConvention
extends Object
implements ClientRequestObservationConvention
Default implementation for a
ClientRequestObservationConvention
,
extracting information from the ClientRequestObservationContext
.- Since:
- 6.0
- Author:
- Brian Clozel
-
Field Summary
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
ConstructorDescriptionCreate a convention with the default name"http.client.requests"
.Create a convention with a custom name. -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.common.KeyValue
protected io.micrometer.common.KeyValue
exception
(ClientRequestObservationContext context) io.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
protected io.micrometer.common.KeyValue
httpUrl
(ClientRequestObservationContext context) protected io.micrometer.common.KeyValue
method
(ClientRequestObservationContext context) protected io.micrometer.common.KeyValue
outcome
(ClientRequestObservationContext context) protected io.micrometer.common.KeyValue
status
(ClientRequestObservationContext context) protected io.micrometer.common.KeyValue
uri
(ClientRequestObservationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.function.client.ClientRequestObservationConvention
supportsContext
-
Constructor Details
-
DefaultClientRequestObservationConvention
public DefaultClientRequestObservationConvention()Create a convention with the default name"http.client.requests"
. -
DefaultClientRequestObservationConvention
Create a convention with a custom name.- Parameters:
name
- the observation name
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<ClientRequestObservationContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<ClientRequestObservationContext>
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(ClientRequestObservationContext context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ClientRequestObservationContext>
-
uri
-
method
-
status
-
clientName
-
exception
-
outcome
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(ClientRequestObservationContext context) - Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ClientRequestObservationContext>
-
httpUrl
-