Package io.opencensus.trace.unsafe
Class ContextManagerImpl
- java.lang.Object
-
- io.opencensus.trace.unsafe.ContextManagerImpl
-
- All Implemented Interfaces:
ContextManager
public class ContextManagerImpl extends java.lang.Object implements ContextManager
DefaultContextManagerimplementation using io.grpc.Context
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContextManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextHandlecurrentContext()SpangetValue(ContextHandle contextHandle)private static io.grpc.ContextunwrapContext(ContextHandle contextHandle)ContextHandlewithValue(ContextHandle contextHandle, Span span)private static ContextHandlewrapContext(io.grpc.Context context)
-
-
-
Method Detail
-
currentContext
public ContextHandle currentContext()
- Specified by:
currentContextin interfaceContextManager
-
withValue
public ContextHandle withValue(ContextHandle contextHandle, @Nullable Span span)
- Specified by:
withValuein interfaceContextManager
-
getValue
public Span getValue(ContextHandle contextHandle)
- Specified by:
getValuein interfaceContextManager
-
wrapContext
private static ContextHandle wrapContext(io.grpc.Context context)
-
unwrapContext
private static io.grpc.Context unwrapContext(ContextHandle contextHandle)
-
-