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
-
Field Summary
FieldsFields inherited from interface org.apache.camel.tracing.SpanDecorator
CAMEL_COMPONENT, DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetHttpMethod(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) protected StringgetHttpURL(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) 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.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, toQueryParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.tracing.SpanDecorator
getComponent, getComponentClassName
-
Field Details
-
POST_METHOD
- See Also:
-
GET_METHOD
- See Also:
-
-
Constructor Details
-
AbstractHttpSpanDecorator
public AbstractHttpSpanDecorator()
-
-
Method Details
-
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
-
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
-