Class ThresholdInternalSpan

  • All Implemented Interfaces:
    InternalSpan

    public class ThresholdInternalSpan
    extends Object
    implements InternalSpan
    Provides the basic span implementation for the ThresholdRequestTracer.

    Most of these span methods are stubs since all the threshold tracer cares about is when the operation is complete if it is over threshold.

    • Method Detail

      • finish

        public void finish()
        Description copied from interface: InternalSpan
        Finishes the overall request span (does not touch or change any sub-spans).
        Specified by:
        finish in interface InternalSpan
      • requestContext

        public void requestContext​(RequestContext ctx)
        Description copied from interface: InternalSpan
        Called by the system once the request is created and gives the span a chance to look into request specific information.
        Specified by:
        requestContext in interface InternalSpan
        Parameters:
        ctx - the request context once available.
      • requestContext

        public RequestContext requestContext()
        Description copied from interface: InternalSpan
        Returns the request context so it can be accessed once set, usually by the tracer implementation.
        Specified by:
        requestContext in interface InternalSpan
      • startDispatch

        public void startDispatch()
        Description copied from interface: InternalSpan
        Signals the start of the IO network dispatch phase for this request.
        Specified by:
        startDispatch in interface InternalSpan
      • stopDispatch

        public void stopDispatch()
        Description copied from interface: InternalSpan
        Signals the end of the IO network dispatch phase for this request.
        Specified by:
        stopDispatch in interface InternalSpan
      • startPayloadEncoding

        public void startPayloadEncoding()
        Description copied from interface: InternalSpan
        Signals the start of payload encoding, if needed for this request.
        Specified by:
        startPayloadEncoding in interface InternalSpan
      • stopPayloadEncoding

        public void stopPayloadEncoding()
        Description copied from interface: InternalSpan
        Signals the end of payload encoding, if needed for this request.
        Specified by:
        stopPayloadEncoding in interface InternalSpan