OpenTelemetry Python Proto
OpenTelemetry is a set of APIs, libraries, agents, and instrumentation to provide observability for applications. Current version is 1.40.0, with releases following a regular cadence for improvements and bug fixes.
Warnings
- breaking start_span and start_as_current_span return behavior has changed.
- deprecated LoggingHandler in opentelemetry-sdk is deprecated; use opentelemetry-instrumentation-logging instead.
Install
-
pip install opentelemetry-proto
Imports
- NoOpTracer
from opentelemetry.proto.tracing import NoOpTracer
Quickstart
from opentelemetry.proto.tracing import NoOpTracer
tracer = NoOpTracer()
span = tracer.start_span('example')