Class DefaultClientObservationConvention
java.lang.Object
org.springframework.web.reactive.function.client.DefaultClientObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<ClientObservationContext>
,ClientObservationConvention
public class DefaultClientObservationConvention
extends Object
implements ClientObservationConvention
Default implementation for a
WebClient
ObservationConvention
,
extracting information from the ClientObservationContext
.- 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
clientName
(ClientObservationContext context) protected io.micrometer.common.KeyValue
exception
(ClientObservationContext context) io.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
protected io.micrometer.common.KeyValue
httpUrl
(ClientObservationContext context) protected io.micrometer.common.KeyValue
method
(ClientObservationContext context) protected io.micrometer.common.KeyValue
outcome
(ClientObservationContext context) protected io.micrometer.common.KeyValue
status
(ClientObservationContext context) protected io.micrometer.common.KeyValue
uri
(ClientObservationContext 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.ClientObservationConvention
supportsContext
-
Constructor Details
-
DefaultClientObservationConvention
public DefaultClientObservationConvention()Create a convention with the default name"http.client.requests"
. -
DefaultClientObservationConvention
Create a convention with a custom name.- Parameters:
name
- the observation name
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<ClientObservationContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<ClientObservationContext>
-
getLowCardinalityKeyValues
- Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ClientObservationContext>
-
uri
-
method
-
status
-
exception
-
outcome
-
getHighCardinalityKeyValues
- Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ClientObservationContext>
-
httpUrl
-
clientName
-