Class AbstractMessagingSpanDecorator

java.lang.Object
org.apache.camel.telemetry.decorators.AbstractSpanDecorator
org.apache.camel.telemetry.decorators.AbstractMessagingSpanDecorator
All Implemented Interfaces:
SpanDecorator
Direct Known Subclasses:
AmqpSpanDecorator, AzureServiceBusSpanDecorator, CometdSpanDecorator, IronmqSpanDecorator, JmsSpanDecorator, KafkaSpanDecorator, NatsSpanDecorator, Paho5SpanDecorator, PahoSpanDecorator, Sjms2SpanDecorator, SjmsSpanDecorator, SpringRabbitmqSpanDecorator, StompSpanDecorator

public abstract class AbstractMessagingSpanDecorator extends AbstractSpanDecorator
  • Constructor Details

    • AbstractMessagingSpanDecorator

      public AbstractMessagingSpanDecorator()
  • Method Details

    • getOperationName

      public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
      Specified by:
      getOperationName in interface SpanDecorator
      Overrides:
      getOperationName in class AbstractSpanDecorator
    • beforeTracingEvent

      public void beforeTracingEvent(Span span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
      Specified by:
      beforeTracingEvent in interface SpanDecorator
      Overrides:
      beforeTracingEvent in class AbstractSpanDecorator
    • getDestination

      protected String getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
      This method identifies the destination from the supplied exchange and/or endpoint.
      Parameters:
      exchange - The exchange
      endpoint - The endpoint
      Returns:
      The message bus destination
    • getMessageId

      protected String getMessageId(org.apache.camel.Exchange exchange)
      This method identifies the message id for the messaging exchange.
      Returns:
      The message id, or null if no id exists for the exchange