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
DefaultContextManager
implementation using io.grpc.Context
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContextManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextHandle
currentContext()
Span
getValue(ContextHandle contextHandle)
private static io.grpc.Context
unwrapContext(ContextHandle contextHandle)
ContextHandle
withValue(ContextHandle contextHandle, Span span)
private static ContextHandle
wrapContext(io.grpc.Context context)
-
-
-
Method Detail
-
currentContext
public ContextHandle currentContext()
- Specified by:
currentContext
in interfaceContextManager
-
withValue
public ContextHandle withValue(ContextHandle contextHandle, @Nullable Span span)
- Specified by:
withValue
in interfaceContextManager
-
getValue
public Span getValue(ContextHandle contextHandle)
- Specified by:
getValue
in interfaceContextManager
-
wrapContext
private static ContextHandle wrapContext(io.grpc.Context context)
-
unwrapContext
private static io.grpc.Context unwrapContext(ContextHandle contextHandle)
-
-