OpenTelemetry Exporter OTLP Proto Common
This library provides Protobuf encoding for OpenTelemetry. The current version is 1.40.0, released regularly as part of the OpenTelemetry project. It is utilized to integrate with various tracing and monitoring systems.
Warnings
- breaking Changes in `start_span` and `start_as_current_span` in NoOpTracer.
- deprecated `LoggingHandler` is deprecated in favor of `opentelemetry-instrumentation-logging`.
Install
-
pip install opentelemetry-exporter-otlp-proto-common
Imports
- NoOpTracer
from opentelemetry.exporter.otlp.proto.common import NoOpTracer
Quickstart
import os
from opentelemetry.exporter.otlp.proto.common import NoOpTracer
tracer = NoOpTracer()
with tracer.start_as_current_span('example_span'):
print('Hello, OpenTelemetry!')