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 manager
ContextManagerImpl. It is loaded by OpenCensus via reflection
automatically in ContextHandleUtils when the OpenCensus shim
library exists as a dependency.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OpenTelemetryContextManager
public OpenTelemetryContextManager()
-
-
Method Details
-
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
-