Class AuthorizationObservationConvention
java.lang.Object
org.springframework.security.authorization.AuthorizationObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>>
public final class AuthorizationObservationConvention
extends Object
implements io.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>>
An
ObservationConvention
for translating authorizations into KeyValues
.- Since:
- 6.0
-
Field Summary
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContextualName
(AuthorizationObservationContext<?> context) io.micrometer.common.KeyValues
io.micrometer.common.KeyValues
getName()
boolean
supportsContext
(io.micrometer.observation.Observation.Context context)
-
Constructor Details
-
AuthorizationObservationConvention
public AuthorizationObservationConvention()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>>
-
getLowCardinalityKeyValues
public io.micrometer.common.KeyValues getLowCardinalityKeyValues(AuthorizationObservationContext<?> context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>>
-
getHighCardinalityKeyValues
public io.micrometer.common.KeyValues getHighCardinalityKeyValues(AuthorizationObservationContext<?> context) - Specified by:
getHighCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>>
-
supportsContext
public boolean supportsContext(io.micrometer.observation.Observation.Context context) - Specified by:
supportsContext
in interfaceio.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>>
-