Class SqsListenerObservation.Context

java.lang.Object
io.micrometer.observation.Observation.Context
io.micrometer.observation.transport.ReceiverContext<Message<?>>
io.awspring.cloud.sqs.support.observation.AbstractListenerObservation.Context
io.awspring.cloud.sqs.support.observation.SqsListenerObservation.Context
All Implemented Interfaces:
io.micrometer.observation.Observation.ContextView
Enclosing class:
SqsListenerObservation

public static class SqsListenerObservation.Context extends AbstractListenerObservation.Context
SqsListenerObservation.Context for SQS message listeners.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Context(Message<?> message)
    Construct an SQS message receiver context.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the message deduplication id.
    Return the message group id.

    Methods inherited from class io.awspring.cloud.sqs.support.observation.AbstractListenerObservation.Context

    getMessage, getMessageId, getSourceName

    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

      public Context(Message<?> message)
      Construct an SQS message receiver context.
      Parameters:
      message - the message.
  • Method Details

    • getMessageGroupId

      public String getMessageGroupId()
      Return the message group id.
      Returns:
      the message group id.
    • getMessageDeduplicationId

      public String getMessageDeduplicationId()
      Return the message deduplication id.
      Returns:
      the message deduplication id.