Class DefaultHttpRequestsObservationConvention
java.lang.Object
org.springframework.web.observation.DefaultHttpRequestsObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<HttpRequestsObservationContext>
,HttpRequestsObservationConvention
public class DefaultHttpRequestsObservationConvention
extends Object
implements HttpRequestsObservationConvention
Default
HttpRequestsObservationConvention
.- 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.server.requests"
.Create a convention with a custom name. -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.common.KeyValue
exception
(HttpRequestsObservationContext context) io.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
protected io.micrometer.common.KeyValue
method
(HttpRequestsObservationContext context) protected io.micrometer.common.KeyValue
outcome
(HttpRequestsObservationContext context) protected io.micrometer.common.KeyValue
status
(HttpRequestsObservationContext context) protected io.micrometer.common.KeyValue
uri
(HttpRequestsObservationContext context) protected io.micrometer.common.KeyValue
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.observation.HttpRequestsObservationConvention
supportsContext
Methods inherited from interface io.micrometer.observation.ObservationConvention
getContextualName
-
Constructor Details
-
DefaultHttpRequestsObservationConvention
public DefaultHttpRequestsObservationConvention()Create a convention with the default name"http.server.requests"
. -
DefaultHttpRequestsObservationConvention
Create a convention with a custom name.- Parameters:
name
- the observation name
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<HttpRequestsObservationContext>
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(HttpRequestsObservationContext context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<HttpRequestsObservationContext>
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(HttpRequestsObservationContext context) - Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<HttpRequestsObservationContext>
-
method
-
status
-
uri
-
exception
-
outcome
-
uriExpanded
-