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(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 post processing of the
exchange.
|
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.
|
getExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getReceiverSpanKind, newSpan, stripSchemeAndOptions, toQueryParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponent, getComponentClassNamepublic static final String POST_METHOD
public static final String GET_METHOD
public static String getHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
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 getHttpURL(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
public void post(SpanAdapter span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecoratorpost in interface SpanDecoratorpost in class AbstractSpanDecoratorspan - The spanexchange - The exchangeendpoint - The endpointApache Camel