Class KafkaSpanDecorator

All Implemented Interfaces:
SpanDecorator

public class KafkaSpanDecorator extends AbstractMessagingSpanDecorator
  • Field Details

  • Constructor Details

    • KafkaSpanDecorator

      public KafkaSpanDecorator()
  • 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
    • getDestination

      public String getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
      Description copied from class: AbstractMessagingSpanDecorator
      This method identifies the destination from the supplied exchange and/or endpoint.
      Overrides:
      getDestination in class AbstractMessagingSpanDecorator
      Parameters:
      exchange - The exchange
      endpoint - The endpoint
      Returns:
      The message bus destination
    • 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 AbstractMessagingSpanDecorator
      Parameters:
      span - The span
      exchange - The exchange
      endpoint - The endpoint