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
  • Constructor Details

    • AuthenticationObservationConvention

      public AuthenticationObservationConvention()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface io.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
    • getLowCardinalityKeyValues

      @NotNull public io.micrometer.common.KeyValues getLowCardinalityKeyValues(@NonNull AuthenticationObservationContext context)
      Specified by:
      getLowCardinalityKeyValues in interface io.micrometer.observation.ObservationConvention<AuthenticationObservationContext>
    • supportsContext

      public boolean supportsContext(@NotNull io.micrometer.observation.Observation.Context context)
      Specified by:
      supportsContext in interface io.micrometer.observation.ObservationConvention<AuthenticationObservationContext>