Package 

Interface TraceScope.Continuation


  • 
    public interface TraceScope.Continuation
    
                        

    Used to pass async context between workers. A trace will not be reported until all spans andcontinuations are resolved. You must call activate (and close on the returned scope) or cancelon each continuation to avoid discarding traces.

    • Method Summary

      Modifier and Type Method Description
      abstract TraceScope activate() Activate the continuation.
      abstract void cancel() Allow trace to stop waiting on this continuation for reporting.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • activate

         abstract TraceScope activate()

        Activate the continuation.

        Should be called on the child thread.

        Consider calling this in a try-with-resources initialization block to ensure the returnedscope is closed properly.

      • cancel

         abstract void cancel()

        Allow trace to stop waiting on this continuation for reporting.