Interface SegmentDecorator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getComponent()
      The camel component associated with the decorator.
      String getOperationName​(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
      This method returns the operation name to use with the segment representing this exchange and endpoint.
      boolean newSegment()
      This method indicates whether the component associated with the SegmentDecorator should result in a new segment being created.
      void post​(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
      This method adds appropriate details (tags/logs) to the supplied segment based on the post processing of the exchange.
      void pre​(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)
      This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.
    • Method Detail

      • newSegment

        boolean newSegment()
        This method indicates whether the component associated with the SegmentDecorator should result in a new segment being created.
        Returns:
        Whether a new segment should be created
      • getComponent

        String getComponent()
        The camel component associated with the decorator.
        Returns:
        The camel component name
      • getOperationName

        String getOperationName​(org.apache.camel.Exchange exchange,
                                org.apache.camel.Endpoint endpoint)
        This method returns the operation name to use with the segment representing this exchange and endpoint.
        Parameters:
        exchange - The exchange
        endpoint - The endpoint
        Returns:
        The operation name
      • pre

        void pre​(com.amazonaws.xray.entities.Entity segment,
                 org.apache.camel.Exchange exchange,
                 org.apache.camel.Endpoint endpoint)
        This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.
        Parameters:
        segment - The segment
        exchange - The exchange
        endpoint - The endpoint
      • post

        void post​(com.amazonaws.xray.entities.Entity segment,
                  org.apache.camel.Exchange exchange,
                  org.apache.camel.Endpoint endpoint)
        This method adds appropriate details (tags/logs) to the supplied segment based on the post processing of the exchange.
        Parameters:
        segment - The segment
        exchange - The exchange
        endpoint - The endpoint