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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeTracingEvent(Span span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) protected StringgetDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) This method identifies the destination from the supplied exchange and/or endpoint.protected StringgetMessageId(org.apache.camel.Exchange exchange) This method identifies the message id for the messaging exchange.getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Methods inherited from class org.apache.camel.telemetry.decorators.AbstractSpanDecorator
afterTracingEvent, getExtractor, getInjector, stripSchemeAndOptions, stripSchemeAndOptions, toQueryParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.telemetry.SpanDecorator
getComponent, getComponentClassName
-
Constructor Details
-
AbstractMessagingSpanDecorator
public AbstractMessagingSpanDecorator()
-
-
Method Details
-
getOperationName
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) - Specified by:
getOperationNamein interfaceSpanDecorator- Overrides:
getOperationNamein classAbstractSpanDecorator
-
beforeTracingEvent
public void beforeTracingEvent(Span span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) - Specified by:
beforeTracingEventin interfaceSpanDecorator- Overrides:
beforeTracingEventin classAbstractSpanDecorator
-
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 exchangeendpoint- The endpoint- Returns:
- The message bus destination
-
getMessageId
This method identifies the message id for the messaging exchange.- Returns:
- The message id, or null if no id exists for the exchange
-