Interface AbstractListenerObservation.Specifics<ContextType extends AbstractListenerObservation.Context>
- Type Parameters:
ContextType-
- All Known Implementing Classes:
SqsListenerObservation.SqsSpecifics
- Enclosing class:
- AbstractListenerObservation
public static interface AbstractListenerObservation.Specifics<ContextType extends AbstractListenerObservation.Context>
Observation-related instances that are specific to a messaging system.
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(Message<?> message) 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.
-