OpenCensus Shim for OpenTelemetry

The OpenTelemetry OpenCensus shim is a library which allows an easy migration from OpenCensus to OpenTelemetry. Additional details can be found in the specification.

The shim consists of a set of classes which implement the OpenCensus Python API while using OpenTelemetry constructs behind the scenes. Its purpose is to allow applications which are already instrumented using OpenCensus to start using OpenTelemetry with minimal effort, without having to rewrite large portions of the codebase.

opentelemetry.shim.opencensus.install_shim(tracer_provider=None)[source]
Return type:

None

opentelemetry.shim.opencensus.uninstall_shim()[source]
Return type:

None