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>
AbstractTemplateObservation.Convention for template key values.-
Field Summary
Fields inherited from interface io.micrometer.observation.ObservationConvention
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContextualName(ContextType context) protected io.micrometer.common.KeyValuesReturn custom high cardinality key values for the observation.protected io.micrometer.common.KeyValuesReturn custom low cardinality key values for the observation.io.micrometer.common.KeyValuesgetHighCardinalityKeyValues(ContextType context) io.micrometer.common.KeyValuesgetLowCardinalityKeyValues(ContextType context) protected abstract StringgetName()protected abstract Stringprotected io.micrometer.common.KeyValuesprotected io.micrometer.common.KeyValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.observation.ObservationConvention
supportsContext
-
Constructor Details
-
Convention
public Convention()
-
-
Method Details
-
getLowCardinalityKeyValues
- Specified by:
getLowCardinalityKeyValuesin interfaceio.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
-
getSpecificLowCardinalityKeyValues
-
getCustomLowCardinalityKeyValues
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:
getHighCardinalityKeyValuesin interfaceio.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
-
getSpecificHighCardinalityKeyValues
-
getCustomHighCardinalityKeyValues
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
- Specified by:
getContextualNamein interfaceio.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
-
getName
- Specified by:
getNamein interfaceio.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
-
getSourceKind
-
getMessagingSystem
-