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.Contextinstance with the provided message.io.micrometer.observation.ObservationConvention<ContextType>Return the defaultObservationConventionfor the specific messaging system.io.micrometer.observation.docs.ObservationDocumentationReturn theObservationDocumentationfor the specific messaging system.
-
Method Details
-
createContext
Construct an specificAbstractListenerObservation.Contextinstance 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 defaultObservationConventionfor the specific messaging system.- Returns:
- the convention.
-
getDocumentation
io.micrometer.observation.docs.ObservationDocumentation getDocumentation()Return theObservationDocumentationfor the specific messaging system.- Returns:
- the documentation.
-