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, toQueryParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent
public static final String MESSAGE_BUS_ID
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecorator
getOperationName
in interface SpanDecorator
getOperationName
in class AbstractSpanDecorator
exchange
- The exchangeendpoint
- The endpointpublic void pre(io.opentracing.Span span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecorator
pre
in interface SpanDecorator
pre
in class AbstractSpanDecorator
span
- 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()
SpanDecorator
getInitiatorSpanKind
in interface SpanDecorator
getInitiatorSpanKind
in class AbstractSpanDecorator
public String getReceiverSpanKind()
SpanDecorator
getReceiverSpanKind
in interface SpanDecorator
getReceiverSpanKind
in class AbstractSpanDecorator
protected String getMessageId(org.apache.camel.Exchange exchange)
Apache Camel