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