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.KeyValues
Return custom high cardinality key values for the observation.protected io.micrometer.common.KeyValues
Return custom low cardinality key values for the observation.io.micrometer.common.KeyValues
getHighCardinalityKeyValues
(ContextType context) io.micrometer.common.KeyValues
getLowCardinalityKeyValues
(ContextType context) protected abstract String
getName()
protected abstract String
protected io.micrometer.common.KeyValues
protected io.micrometer.common.KeyValues
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
supportsContext
-
Constructor Details
-
Convention
public Convention()
-
-
Method Details
-
getLowCardinalityKeyValues
- Specified by:
getLowCardinalityKeyValues
in 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:
getHighCardinalityKeyValues
in 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:
getContextualName
in interfaceio.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
-
getName
- Specified by:
getName
in interfaceio.micrometer.observation.ObservationConvention<ContextType extends AbstractTemplateObservation.Context>
-
getSourceKind
-
getMessagingSystem
-