Class AdviceUtils


  • public class AdviceUtils
    extends java.lang.Object
    Helper utils for Runnable/Callable instrumentation.
    • Constructor Summary

      Constructors 
      Constructor Description
      AdviceUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> io.opentelemetry.context.Scope startTaskScope​(ContextStore<T,​State> contextStore, T task)
      Start scope for a given task.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdviceUtils

        public AdviceUtils()
    • Method Detail

      • startTaskScope

        public static <T> io.opentelemetry.context.Scope startTaskScope​(ContextStore<T,​State> contextStore,
                                                                        T task)
        Start scope for a given task.
        Type Parameters:
        T - task's type
        Parameters:
        contextStore - context storage for task's state
        task - task to start scope for
        Returns:
        scope if scope was started, or null