public class ElasticsearchSpanDecorator extends AbstractSpanDecorator
Modifier and Type | Field and Description |
---|---|
static String |
ELASTICSEARCH_CLUSTER_TAG |
static String |
ELASTICSEARCH_DB_TYPE |
CAMEL_COMPONENT, DEFAULT
Constructor and Description |
---|
ElasticsearchSpanDecorator() |
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.
|
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.
|
getExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getReceiverSpanKind, newSpan, post, stripSchemeAndOptions, toQueryParameters
public static final String ELASTICSEARCH_DB_TYPE
public static final String ELASTICSEARCH_CLUSTER_TAG
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 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 endpointApache Camel