Class AbstractHttpSpanDecorator
- java.lang.Object
-
- org.apache.camel.tracing.decorators.AbstractSpanDecorator
-
- org.apache.camel.tracing.decorators.AbstractHttpSpanDecorator
-
- All Implemented Interfaces:
SpanDecorator
- Direct Known Subclasses:
AhcSpanDecorator,HttpSpanDecorator,JettySpanDecorator,NettyHttpSpanDecorator,PlatformHttpSpanDecorator,RestSpanDecorator,ServletSpanDecorator,UndertowSpanDecorator,VertxHttpSpanDecorator
public abstract class AbstractHttpSpanDecorator extends AbstractSpanDecorator
-
-
Field Summary
Fields Modifier and Type Field Description static StringGET_METHODstatic StringPOST_METHOD-
Fields inherited from interface org.apache.camel.tracing.SpanDecorator
CAMEL_COMPONENT, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpSpanDecorator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)protected StringgetHttpURL(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)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.voidpost(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.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, stripSchemeAndOptions, toQueryParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.tracing.SpanDecorator
getComponent, getComponentClassName
-
-
-
-
Field Detail
-
POST_METHOD
public static final String POST_METHOD
- See Also:
- Constant Field Values
-
GET_METHOD
public static final String GET_METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHttpMethod
public static String getHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
-
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
-
getHttpURL
protected String getHttpURL(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
-
post
public void post(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 post processing of the exchange.- Specified by:
postin interfaceSpanDecorator- Overrides:
postin classAbstractSpanDecorator- Parameters:
span- The spanexchange- The exchangeendpoint- The endpoint
-
-