Class AdviceUtils


  • public final class AdviceUtils
    extends Object
    Helper utils for Runnable/Callable instrumentation.
    • 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