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, RestOpenapiSpanDecorator, RestSpanDecorator, ServletSpanDecorator, UndertowSpanDecorator, VertxHttpSpanDecorator

public abstract class AbstractHttpSpanDecorator extends AbstractSpanDecorator
  • Field Details

  • Constructor Details

    • AbstractHttpSpanDecorator

      public AbstractHttpSpanDecorator()
  • Method Details

    • getHttpMethod

      public 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 interface SpanDecorator
      Overrides:
      getOperationName in class AbstractSpanDecorator
      Parameters:
      exchange - The exchange
      endpoint - 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 interface SpanDecorator
      Overrides:
      pre in class AbstractSpanDecorator
      Parameters:
      span - The span
      exchange - The exchange
      endpoint - 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 interface SpanDecorator
      Overrides:
      post in class AbstractSpanDecorator
      Parameters:
      span - The span
      exchange - The exchange
      endpoint - The endpoint