Class DefaultApacheHttpClientObservationConvention
java.lang.Object
io.micrometer.core.instrument.binder.httpcomponents.hc5.DefaultApacheHttpClientObservationConvention
- All Implemented Interfaces:
ApacheHttpClientObservationConvention
,io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<ApacheHttpClientContext>
public class DefaultApacheHttpClientObservationConvention
extends Object
implements ApacheHttpClientObservationConvention
Default implementation of
ApacheHttpClientObservationConvention
.- Since:
- 1.11.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DefaultApacheHttpClientObservationConvention
Singleton instance of this convention.Fields inherited from interface io.micrometer.core.instrument.binder.httpcomponents.hc5.ApacheHttpClientObservationConvention
URI_TEMPLATE_ATTRIBUTE
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.common.KeyValue
exception
(ApacheHttpClientContext context) Extractexception
key value from context.getContextualName
(ApacheHttpClientContext context) io.micrometer.common.KeyValues
getName()
protected io.micrometer.common.KeyValue
method
(ApacheHttpClientContext context) Extractmethod
key value from context.protected io.micrometer.common.KeyValue
outcome
(ApacheHttpClientContext context) Extractoutcome
key value from context.protected io.micrometer.common.KeyValue
status
(ApacheHttpClientContext context) Extractstatus
key value from context.protected io.micrometer.common.KeyValue
targetHost
(ApacheHttpClientContext context) Extracttarget.host
key value from context.protected io.micrometer.common.KeyValue
targetPort
(ApacheHttpClientContext context) Extracttarget.port
key value from context.protected io.micrometer.common.KeyValue
targetScheme
(ApacheHttpClientContext context) Extracttarget.scheme
key value from context.protected io.micrometer.common.KeyValue
uri
(ApacheHttpClientContext context) Extracturi
key value from context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micrometer.core.instrument.binder.httpcomponents.hc5.ApacheHttpClientObservationConvention
supportsContext
Methods inherited from interface io.micrometer.observation.ObservationConvention
getHighCardinalityKeyValues
-
Field Details
-
INSTANCE
Singleton instance of this convention.
-
-
Constructor Details
-
DefaultApacheHttpClientObservationConvention
protected DefaultApacheHttpClientObservationConvention()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<ApacheHttpClientContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<ApacheHttpClientContext>
-
getLowCardinalityKeyValues
- Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<ApacheHttpClientContext>
-
exception
Extractexception
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
exception
key value - Since:
- 1.12.0
-
method
Extractmethod
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
method
key value - Since:
- 1.12.0
-
outcome
Extractoutcome
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
outcome
key value - Since:
- 1.12.0
-
status
Extractstatus
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
status
key value - Since:
- 1.12.0
-
targetHost
Extracttarget.host
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
target.host
key value - Since:
- 1.12.0
-
targetPort
Extracttarget.port
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
target.port
key value - Since:
- 1.12.0
-
targetScheme
Extracttarget.scheme
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
target.scheme
key value - Since:
- 1.12.0
-
uri
Extracturi
key value from context.- Parameters:
context
- HTTP client context- Returns:
- extracted
uri
key value - Since:
- 1.12.0
-