public class RestSpanDecorator extends AbstractHttpSpanDecorator
GET_METHOD, POST_METHOD
CAMEL_COMPONENT, DEFAULT
Constructor and Description |
---|
RestSpanDecorator() |
Modifier and Type | Method and Description |
---|---|
String |
getComponent()
The camel component associated with the decorator.
|
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.
|
protected static List<String> |
getParameters(String path) |
protected static String |
getPath(String uri) |
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.
|
getHttpMethod, getHttpURL, post
getExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getReceiverSpanKind, newSpan, stripSchemeAndOptions, toQueryParameters
public String getComponent()
SpanDecorator
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecorator
getOperationName
in interface SpanDecorator
getOperationName
in class AbstractHttpSpanDecorator
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 AbstractHttpSpanDecorator
span
- The spanexchange
- The exchangeendpoint
- The endpointApache Camel