public class RestSpanDecorator extends AbstractHttpSpanDecorator
GET_METHOD, POST_METHODCAMEL_COMPONENT, DEFAULT| Constructor and Description |
|---|
RestSpanDecorator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getComponent()
The camel component name associated with the decorator.
|
String |
getComponentClassName()
The camel component FQN classname 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, postgetExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getReceiverSpanKind, newSpan, stripSchemeAndOptions, toQueryParameterspublic String getComponent()
SpanDecoratorpublic String getComponentClassName()
SpanDecoratorpublic String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
SpanDecoratorgetOperationName in interface SpanDecoratorgetOperationName in class AbstractHttpSpanDecoratorexchange - 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 AbstractHttpSpanDecoratorspan - The spanexchange - The exchangeendpoint - The endpointApache Camel