public abstract class AbstractHttpSpanDecorator extends AbstractSpanDecorator
Modifier and Type | Field and Description |
---|---|
static String |
GET_METHOD |
static String |
POST_METHOD |
CAMEL_COMPONENT, DEFAULT
Constructor and Description |
---|
AbstractHttpSpanDecorator() |
Modifier and Type | Method and Description |
---|---|
static String |
getHttpMethod(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint) |
protected String |
getHttpURL(org.apache.camel.Exchange exchange,
org.apache.camel.Endpoint endpoint) |
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.
|
void |
post(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 post processing of the exchange.
|
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.
|
getInitiatorSpanKind, getReceiverSpanKind, newSpan, stripSchemeAndOptions, toQueryParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent
public static final String POST_METHOD
public static final String GET_METHOD
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 static String getHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
public 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 getHttpURL(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
public void post(io.opentracing.Span span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecorator
post
in interface SpanDecorator
post
in class AbstractSpanDecorator
span
- The spanexchange
- The exchangeendpoint
- The endpointApache Camel