Class RestSpanDecorator

All Implemented Interfaces:
SpanDecorator

public class RestSpanDecorator extends AbstractHttpSpanDecorator
  • Constructor Details

    • RestSpanDecorator

      public RestSpanDecorator()
  • Method Details

    • getComponent

      public String getComponent()
      Description copied from interface: SpanDecorator
      The camel component name associated with the decorator.
      Returns:
      The camel component name
    • getComponentClassName

      public String getComponentClassName()
      Description copied from interface: SpanDecorator
      The 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: 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 AbstractHttpSpanDecorator
      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 AbstractHttpSpanDecorator
      Parameters:
      span - The span
      exchange - The exchange
      endpoint - The endpoint
    • getPath

      protected static String getPath(String uri)
    • getParameters

      protected static List<String> getParameters(String path)