public abstract class AbstractMessagingSpanDecorator extends AbstractSpanDecorator
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_BUS_ID |
CAMEL_COMPONENT, DEFAULT| Constructor and Description |
|---|
AbstractMessagingSpanDecorator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ExtractAdapter |
getExtractAdapter(Map<String,Object> map,
boolean jmsEncoding)
This method returns the map to be used for headers extraction when the component is receiving a communication.
|
SpanKind |
getInitiatorSpanKind()
This method returns the 'span.kind' value for use when the component is initiating a communication.
|
InjectAdapter |
getInjectAdapter(Map<String,Object> map,
boolean jmsEncoding)
This method returns the map to be used for headers injection when the component is receiving a communication.
|
protected String |
getMessageId(org.apache.camel.Exchange exchange)
This method identifies the message id for the messaging exchange.
|
String |
getOperationName(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method returns the operation name to use with the Span representing this exchange and endpoint.
|
SpanKind |
getReceiverSpanKind()
This method returns the 'span.kind' value for use when the component is receiving a communication.
|
void |
pre(SpanAdapter span,
org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint)
This method adds appropriate details (tags/logs) to the supplied span based on the pre processing of the
exchange.
|
newSpan, post, stripSchemeAndOptions, toQueryParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponent, getComponentClassNamepublic static final String MESSAGE_BUS_ID
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecoratorgetOperationName in interface SpanDecoratorgetOperationName in class AbstractSpanDecoratorexchange - The exchangeendpoint - The endpointpublic void pre(SpanAdapter span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecoratorpre in interface SpanDecoratorpre in class AbstractSpanDecoratorspan - The spanexchange - The exchangeendpoint - The endpointprotected String getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
exchange - The exchangeendpoint - The endpointpublic SpanKind getInitiatorSpanKind()
SpanDecoratorgetInitiatorSpanKind in interface SpanDecoratorgetInitiatorSpanKind in class AbstractSpanDecoratorpublic SpanKind getReceiverSpanKind()
SpanDecoratorgetReceiverSpanKind in interface SpanDecoratorgetReceiverSpanKind in class AbstractSpanDecoratorprotected String getMessageId(org.apache.camel.Exchange exchange)
public ExtractAdapter getExtractAdapter(Map<String,Object> map, boolean jmsEncoding)
SpanDecoratorgetExtractAdapter in interface SpanDecoratorgetExtractAdapter in class AbstractSpanDecoratormap - a map containing the objectsjmsEncoding - whether the headers are encodedpublic InjectAdapter getInjectAdapter(Map<String,Object> map, boolean jmsEncoding)
SpanDecoratorgetInjectAdapter in interface SpanDecoratorgetInjectAdapter in class AbstractSpanDecoratormap - a map containing the objectsjmsEncoding - whether the headers are encodedApache Camel