Package io.opentelemetry.opencensusshim
Class OpenTelemetryContextManager
- java.lang.Object
-
- io.opentelemetry.opencensusshim.OpenTelemetryContextManager
-
- All Implemented Interfaces:
io.opencensus.trace.ContextManager
public final class OpenTelemetryContextManager extends Object implements io.opencensus.trace.ContextManager
This is a context manager implementation that overrides the default OpenCensus context managerContextManagerImpl. It is loaded by OpenCensus via reflection automatically inContextHandleUtilswhen the OpenCensus shim library exists as a dependency.
-
-
Constructor Summary
Constructors Constructor Description OpenTelemetryContextManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opencensus.trace.ContextHandlecurrentContext()io.opencensus.trace.SpangetValue(io.opencensus.trace.ContextHandle ctx)io.opencensus.trace.ContextHandlewithValue(io.opencensus.trace.ContextHandle ctx, io.opencensus.trace.Span span)
-
-
-
Method Detail
-
currentContext
public io.opencensus.trace.ContextHandle currentContext()
- Specified by:
currentContextin interfaceio.opencensus.trace.ContextManager
-
withValue
public io.opencensus.trace.ContextHandle withValue(io.opencensus.trace.ContextHandle ctx, io.opencensus.trace.Span span)- Specified by:
withValuein interfaceio.opencensus.trace.ContextManager
-
getValue
public io.opencensus.trace.Span getValue(io.opencensus.trace.ContextHandle ctx)
- Specified by:
getValuein interfaceio.opencensus.trace.ContextManager
-
-