Class AuthenticationObservationConvention
java.lang.Object
org.springframework.security.authentication.AuthenticationObservationConvention
- All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention
,io.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
public final class AuthenticationObservationConvention
extends Object
implements io.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
An
ObservationConvention
for translating authentications into
KeyValues
.- Since:
- 6.0
-
Field Summary
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull io.micrometer.common.KeyValues
getName()
boolean
supportsContext
(io.micrometer.observation.Observation.Context 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.observation.ObservationConvention
getHighCardinalityKeyValues
-
Constructor Details
-
AuthenticationObservationConvention
public AuthenticationObservationConvention()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
-
getContextualName
- Specified by:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
-
getLowCardinalityKeyValues
@NotNull public @NotNull io.micrometer.common.KeyValues getLowCardinalityKeyValues(@NonNull AuthenticationObservationContext context) - Specified by:
getLowCardinalityKeyValues
in interfaceio.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
-
supportsContext
public boolean supportsContext(@NotNull io.micrometer.observation.Observation.Context context) - Specified by:
supportsContext
in interfaceio.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
-