public class ContextHandleUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static ContextHandle |
currentContext() |
static Span |
getValue(ContextHandle context)
Returns the value from the specified
ContextHandle. |
static ContextHandle |
withValue(ContextHandle context,
Span span)
Creates a new
ContextHandle with the given value set. |
public static ContextHandle currentContext()
public static ContextHandle withValue(ContextHandle context, @Nullable Span span)
ContextHandle with the given value set.context - the parent ContextHandle.span - the value to be set.public static Span getValue(ContextHandle context)
ContextHandle.context - the specified ContextHandle.ContextHandle.