Class AbstractListenerObservation.Context
java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.ReceiverContext<Message<?>>
io.awspring.cloud.sqs.support.observation.AbstractListenerObservation.Context
- All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
- Direct Known Subclasses:
SqsListenerObservation.Context
- Enclosing class:
- AbstractListenerObservation
public abstract static class AbstractListenerObservation.Context
extends io.micrometer.observation.transport.ReceiverContext<Message<?>>
ReceiverContext for message listeners.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMessage<?>Return the message.Return the message id.Return the source name.Methods inherited from class io.micrometer.observation.transport.ReceiverContext
getCarrier, getGetter, getKind, getRemoteServiceAddress, getRemoteServiceName, setCarrier, setRemoteServiceAddress, setRemoteServiceNameMethods inherited from class io.micrometer.observation.Observation.Context
addHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micrometer.observation.Observation.ContextView
getOrDefault
-
Constructor Details
-
Context
Build a messaging receiver context.- Parameters:
message- the message.sourceName- the source name.
-
-
Method Details
-
getMessageId
Return the message id.- Returns:
- the message id.
-
getMessage
Return the message.- Returns:
- the message.
-
getSourceName
Return the source name.- Returns:
- the source name.
-