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.
|
String |
getInitiatorSpanKind()
This method returns the 'span.kind' value for use when the component
is initiating 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, waitgetComponentpublic 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)
Apache Camel