Interface ClientSpanDecorator


  • public interface ClientSpanDecorator
    Author:
    Pavol Loffay
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void decorateRequest​(jakarta.ws.rs.client.ClientRequestContext requestContext, io.opentracing.Span span)
      Decorate get by incoming object.
      void decorateResponse​(jakarta.ws.rs.client.ClientResponseContext responseContext, io.opentracing.Span span)
      Decorate spans by outgoing object.
    • Field Detail

      • STANDARD_TAGS

        static final ClientSpanDecorator STANDARD_TAGS
        Adds standard tags: Tags.SPAN_KIND, Tags.PEER_HOSTNAME, Tags.PEER_PORT, Tags.HTTP_METHOD, Tags.HTTP_URL and Tags.HTTP_STATUS
      • HTTP_PATH_OPERATION_NAME

        static final ClientSpanDecorator HTTP_PATH_OPERATION_NAME
        As operation name provides HTTP path. If there are path parameters used in URL then spans for the same requests would have different operation names, therefore use carefully.
    • Method Detail

      • decorateRequest

        void decorateRequest​(jakarta.ws.rs.client.ClientRequestContext requestContext,
                             io.opentracing.Span span)
        Decorate get by incoming object.
        Parameters:
        requestContext -
        span -
      • decorateResponse

        void decorateResponse​(jakarta.ws.rs.client.ClientResponseContext responseContext,
                              io.opentracing.Span span)
        Decorate spans by outgoing object.
        Parameters:
        responseContext -
        span -