Class MessagingRequest

    • Method Detail

      • operation

        @Nullable
        public abstract String operation()
        The unqualified, case-sensitive semantic message operation name. The currently defined names are "send" and "receive".

        Examples:

        • Amazon SQS - AmazonSQS.sendMessageBatch() is a "send" operation
        • JMS - MessageProducer.send() is a "send" operation
        • Kafka - Consumer.poll() is a "receive" operation
        • RabbitMQ - Consumer.handleDelivery() is a "receive" operation

        Note: There is no constant set of operations, yet. Even when there is a constant set, there may be operations such as "browse" or "purge" which aren't defined. Once implementation matures, a constant file will be defined, with potentially more names.

        Returns:
        the messaging operation or null if unreadable.
        Since:
        5.9
      • channelKind

        @Nullable
        public abstract String channelKind()
        Type of channel, e.g. "queue" or "topic". null if unreadable.

        Conventionally associated with the key "messaging.channel_kind"

        Since:
        5.9
        See Also:
        channelName()
      • channelName

        @Nullable
        public abstract String channelName()
        Messaging channel name, e.g. "hooks" or "complaints". null if unreadable.

        Conventionally associated with the key "messaging.channel_name"

        Since:
        5.9
        See Also:
        channelKind()