Class DefaultClientRequestObservationConvention
java.lang.Object
io.micronaut.micrometer.observation.http.client.instrumentation.DefaultClientRequestObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<ClientRequestObservationContext>
,ClientRequestObservationConvention
@Internal
public final class DefaultClientRequestObservationConvention
extends Object
implements ClientRequestObservationConvention
Default implementation for a
ClientRequestObservationConvention
extracting information from the ClientRequestObservationContext
.-
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 TypeMethodDescriptionio.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.micrometer.observation.http.client.instrumentation.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>
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(ClientRequestObservationContext context) - Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ClientRequestObservationContext>
-