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
    Modifier
    Constructor
    Description
    protected
    Context(Message<?> message, String sourceName)
    Build a messaging receiver context.
  • Method Summary

    Modifier and Type
    Method
    Description
    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, setRemoteServiceName

    Methods 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, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.micrometer.observation.Observation.ContextView

    getOrDefault
  • Constructor Details

    • Context

      protected Context(Message<?> message, String sourceName)
      Build a messaging receiver context.
      Parameters:
      message - the message.
      sourceName - the source name.
  • Method Details

    • getMessageId

      public String getMessageId()
      Return the message id.
      Returns:
      the message id.
    • getMessage

      public Message<?> getMessage()
      Return the message.
      Returns:
      the message.
    • getSourceName

      public String getSourceName()
      Return the source name.
      Returns:
      the source name.