Interface AbstractTemplateObservation.Specifics<ContextType extends AbstractTemplateObservation.Context>
- Type Parameters:
ContextType
-
- All Known Implementing Classes:
SqsTemplateObservation.SqsSpecifics
- Enclosing class:
- AbstractTemplateObservation
public static interface AbstractTemplateObservation.Specifics<ContextType extends AbstractTemplateObservation.Context>
Contains observation-related instances that are specific to a messaging system.
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext
(Message<?> message, String destinationName) Construct an specificAbstractListenerObservation.Context
instance with the provided message.io.micrometer.observation.ObservationConvention<ContextType>
Return the defaultObservationConvention
for the specific messaging system.io.micrometer.observation.docs.ObservationDocumentation
Return theObservationDocumentation
for the specific messaging system.
-
Method Details
-
createContext
Construct an specificAbstractListenerObservation.Context
instance with the provided message.- Parameters:
message
- the message from which the context should be constructed.- Returns:
- the context instance.
-
getDefaultConvention
io.micrometer.observation.ObservationConvention<ContextType> getDefaultConvention()Return the defaultObservationConvention
for the specific messaging system.- Returns:
- the convention.
-
getDocumentation
io.micrometer.observation.docs.ObservationDocumentation getDocumentation()Return theObservationDocumentation
for the specific messaging system.- Returns:
- the documentation.
-