Class ElasticsearchSpanDecorator
- java.lang.Object
-
- org.apache.camel.tracing.decorators.AbstractSpanDecorator
-
- org.apache.camel.tracing.decorators.ElasticsearchSpanDecorator
-
- All Implemented Interfaces:
SpanDecorator
public class ElasticsearchSpanDecorator extends AbstractSpanDecorator
-
-
Field Summary
Fields Modifier and Type Field Description static StringELASTICSEARCH_CLUSTER_TAGstatic StringELASTICSEARCH_DB_TYPE-
Fields inherited from interface org.apache.camel.tracing.SpanDecorator
CAMEL_COMPONENT, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchSpanDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComponent()The camel component name associated with the decorator.StringgetComponentClassName()The camel component FQN classname associated with the decorator.StringgetOperationName(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.voidpre(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.-
Methods inherited from class org.apache.camel.tracing.decorators.AbstractSpanDecorator
getExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getReceiverSpanKind, newSpan, post, stripSchemeAndOptions, toQueryParameters
-
-
-
-
Field Detail
-
ELASTICSEARCH_DB_TYPE
public static final String ELASTICSEARCH_DB_TYPE
- See Also:
- Constant Field Values
-
ELASTICSEARCH_CLUSTER_TAG
public static final String ELASTICSEARCH_CLUSTER_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getComponent
public String getComponent()
Description copied from interface:SpanDecoratorThe camel component name associated with the decorator.- Returns:
- The camel component name
-
getComponentClassName
public String getComponentClassName()
Description copied from interface:SpanDecoratorThe camel component FQN classname associated with the decorator.- Returns:
- The camel component FQN classname
-
getOperationName
public String getOperationName(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
Description copied from interface:SpanDecoratorThis method returns the operation name to use with the Span representing this exchange and endpoint.- Specified by:
getOperationNamein interfaceSpanDecorator- Overrides:
getOperationNamein classAbstractSpanDecorator- Parameters:
exchange- The exchangeendpoint- The endpoint- Returns:
- The operation name
-
pre
public void pre(SpanAdapter span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
Description copied from interface:SpanDecoratorThis method adds appropriate details (tags/logs) to the supplied span based on the pre processing of the exchange.- Specified by:
prein interfaceSpanDecorator- Overrides:
prein classAbstractSpanDecorator- Parameters:
span- The spanexchange- The exchangeendpoint- The endpoint
-
-