Class AbstractTemplateObservation.Convention<ContextType extends AbstractTemplateObservation.Context>

java.lang.Object
io.awspring.cloud.sqs.support.observation.AbstractTemplateObservation.Convention<ContextType>
All Implemented Interfaces:
io.micrometer.observation.KeyValuesConvention, io.micrometer.observation.ObservationConvention<ContextType>
Direct Known Subclasses:
SqsTemplateObservation.DefaultConvention
Enclosing class:
AbstractTemplateObservation

public abstract static class AbstractTemplateObservation.Convention<ContextType extends AbstractTemplateObservation.Context> extends Object implements io.micrometer.observation.ObservationConvention<ContextType>
  • Constructor Details

    • Convention

      public Convention()
  • Method Details

    • getLowCardinalityKeyValues

      @NonNull public io.micrometer.common.KeyValues getLowCardinalityKeyValues(ContextType context)
      Specified by:
      getLowCardinalityKeyValues in interface io.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
    • getSpecificLowCardinalityKeyValues

      protected io.micrometer.common.KeyValues getSpecificLowCardinalityKeyValues(ContextType context)
    • getCustomLowCardinalityKeyValues

      protected io.micrometer.common.KeyValues getCustomLowCardinalityKeyValues(ContextType context)
      Return custom low cardinality key values for the observation. This method is intended to be overridden by subclasses to add custom low cardinality tags to the observation.
      Parameters:
      context - the context for which to get key values.
      Returns:
      key values to add to the observation, empty by default.
    • getHighCardinalityKeyValues

      @NonNull public io.micrometer.common.KeyValues getHighCardinalityKeyValues(@NonNull ContextType context)
      Specified by:
      getHighCardinalityKeyValues in interface io.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
    • getSpecificHighCardinalityKeyValues

      protected io.micrometer.common.KeyValues getSpecificHighCardinalityKeyValues(ContextType context)
    • getCustomHighCardinalityKeyValues

      protected io.micrometer.common.KeyValues getCustomHighCardinalityKeyValues(ContextType context)
      Return custom high cardinality key values for the observation. This method is intended to be overridden by subclasses to add custom high cardinality tags to the observation.
      Parameters:
      context - the context for which to get key values.
      Returns:
      key values to add to the observation, empty by default.
    • getContextualName

      public String getContextualName(ContextType context)
      Specified by:
      getContextualName in interface io.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
    • getName

      public String getName()
      Specified by:
      getName in interface io.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
    • getSourceKind

      protected abstract String getSourceKind()
    • getMessagingSystem

      protected abstract String getMessagingSystem()