Python

Python A language-specific implementation of OpenTelemetry in Python.

You are viewing the English version of this page because it has not yet been fully translated. Interested in helping out? See Contributing.

Bun venit la documentația OpenTelemetry Python. Această secțiune prezintă modul de utilizare a OpenTelemetry cu Python pentru a genera și colecta date de telemetrie, precum metrici, jurnale (logs) și urme (traces), folosind API-ul și SDK-urile OpenTelemetry.

Aceste pagini sunt menite să te ajute să începi și să înțelegi capacitățile actuale și stadiul OpenTelemetry Python.

Stadii și versiuni

Stadiul actual al principalelor componente funcționale pentru OpenTelemetry Python este următorul:

Urme (Traces)Metrici (Metrics)Jurnale (Logs)
StableStableDevelopment

Pentru versiuni, inclusiv cea mai recentă versiune, vezi Versiuni.

Version support

OpenTelemetry-Python supports Python 3.10 and higher.

Installation

The API and SDK packages are available on PyPI, and can be installed via pip:

pip install opentelemetry-api
pip install opentelemetry-sdk

In addition, there are several extension packages which can be installed separately as:

pip install opentelemetry-exporter-{exporter}
pip install opentelemetry-instrumentation-{instrumentation}

These are for exporter and instrumentation libraries respectively. The Jaeger, Zipkin, Prometheus, OTLP and OpenCensus Exporters can be found in the exporter directory of the repository. Instrumentations and additional exporters can be found in the contrib repository instrumentation and exporter directories.

Extensions

To find related projects like exporters, instrumentation libraries, tracer implementations, etc., visit the Registry.

Installing Cutting-edge Packages

There is some functionality that has not yet been released to PyPI. In that situation, you may want to install the packages directly from the repository. This can be done by cloning the repository and doing an editable install:

git clone https://github.com/open-telemetry/opentelemetry-python.git
cd opentelemetry-python
pip install -e ./opentelemetry-api -e ./opentelemetry-sdk -e ./opentelemetry-semantic-conventions

Repositories and benchmarks


Getting Started by Example

Get telemetry for your app in less than 5 minutes!

Instrumentation

Manual instrumentation for OpenTelemetry Python

Using instrumentation libraries

Exporters

Process and export your telemetry data

Propagation

Context propagation for the Python SDK

Cookbook

OpenTelemetry Distro

Using mypy

Benchmarks

Throughput of tracing, metrics, logging and baggage operations in the Python SDK

API reference

Examples

Registry

Instrumentation libraries, exporters and other useful components for OpenTelemetry Python


Ultima modificare July 22, 2026: Refresh refcache (#10943) (3520383f)