Class AdviceUtils
- java.lang.Object
-
- io.opentelemetry.javaagent.instrumentation.api.concurrent.AdviceUtils
-
public class AdviceUtils extends 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.ScopestartTaskScope(ContextStore<T,State> contextStore, T task)Start scope for a given task.
-
-
-
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 statetask- task to start scope for- Returns:
- scope if scope was started, or null
-
-