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.
|
io.opentracing.propagation.TextMap |
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.
|
String |
getInitiatorSpanKind()
This method returns the 'span.kind' value for use when the component
is initiating a communication.
|
io.opentracing.propagation.TextMap |
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.
|
String |
getReceiverSpanKind()
This method returns the 'span.kind' value for use when the component
is receiving a communication.
|
void |
pre(io.opentracing.Span 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(io.opentracing.Span 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 String getInitiatorSpanKind()
SpanDecoratorgetInitiatorSpanKind in interface SpanDecoratorgetInitiatorSpanKind in class AbstractSpanDecoratorpublic String getReceiverSpanKind()
SpanDecoratorgetReceiverSpanKind in interface SpanDecoratorgetReceiverSpanKind in class AbstractSpanDecoratorprotected String getMessageId(org.apache.camel.Exchange exchange)
public io.opentracing.propagation.TextMap getExtractAdapter(Map<String,Object> map, boolean jmsEncoding)
SpanDecoratorgetExtractAdapter in interface SpanDecoratorgetExtractAdapter in class AbstractSpanDecoratormap - a map containing the objectsjmsEncoding - whether the headers are encodedpublic io.opentracing.propagation.TextMap 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