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 String
GET_METHOD
static String
POST_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 String
getHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
protected String
getHttpURL(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
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
post(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.void
pre(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:SpanDecorator
This method returns the operation name to use with the Span representing this exchange and endpoint.- Specified by:
getOperationName
in interfaceSpanDecorator
- Overrides:
getOperationName
in 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:SpanDecorator
This method adds appropriate details (tags/logs) to the supplied span based on the pre processing of the exchange.- Specified by:
pre
in interfaceSpanDecorator
- Overrides:
pre
in 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:SpanDecorator
This method adds appropriate details (tags/logs) to the supplied span based on the post processing of the exchange.- Specified by:
post
in interfaceSpanDecorator
- Overrides:
post
in classAbstractSpanDecorator
- Parameters:
span
- The spanexchange
- The exchangeendpoint
- The endpoint
-
-