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 Details

    • OpenTelemetryContextManager

      public OpenTelemetryContextManager()
  • Method Details

    • currentContext

      public io.opencensus.trace.ContextHandle currentContext()
      Specified by:
      currentContext in interface io.opencensus.trace.ContextManager
    • withValue

      public io.opencensus.trace.ContextHandle withValue(io.opencensus.trace.ContextHandle ctx, io.opencensus.trace.Span span)
      Specified by:
      withValue in interface io.opencensus.trace.ContextManager
    • getValue

      public io.opencensus.trace.Span getValue(io.opencensus.trace.ContextHandle ctx)
      Specified by:
      getValue in interface io.opencensus.trace.ContextManager