-
public interface TraceScope.ContinuationUsed 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 TraceScopeactivate()Activate the continuation. abstract voidcancel()Allow trace to stop waiting on this continuation for reporting. -
-
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.
-
-
-
-