Python

Python PythonにおけるOpenTelemetryの言語固有の実装。

これはOpenTelemetryPythonのドキュメントです。 OpenTelemetryはオブザーバビリティのためのフレームワークであり、メトリクス、ログ、トレースといったアプリケーションのテレメトリーデータの生成および収集を支援するように設計された API、SDK、およびツール群で構成されています。 このドキュメントは、OpenTelemetry Pythonの使い方を理解し、利用を開始するための手助けとなるように作られています。

ステータスとリリース

OpenTelemetry Pythonの主要な機能コンポーネントの現在のステータスは以下の通りです。

トレースメトリクスログ
StableStableDevelopment

最新のリリースを含むリリース情報については、リリースをご覧ください。

バージョンサポート

OpenTelemetry-PythonはPython 3.9以上をサポートしています。

インストール

APIおよびSDKパッケージはPyPIで公開されており、pipでインストールできます。

pip install opentelemetry-api
pip install opentelemetry-sdk

また、個別にインストール可能な拡張パッケージもあります。

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

これらはそれぞれエクスポーターと計装ライブラリ用です。 Jaeger、Zipkin、Prometheus、OTLPおよびOpenCensusエクスポーターはリポジトリのexporterディレクトリにあります。 計装と追加のエクスポーターはcontribリポジトリのinstrumentationおよびexporterディレクトリにあります。

エクステンション

エクスポーター、計装ライブラリ、トレーサー実装などの関連プロジェクトを探すには、レジストリを参照してください。

最新パッケージのインストール

まだPyPIにリリースされていない機能はいくつかあります。 その場合、リポジトリから直接パッケージをインストールすることができます。 リポジトリをクローンして編集可能なインストールを行う方法は次のとおりです。

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

リポジトリとベンチマーク


Getting Started

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

API reference

Examples

Registry

Instrumentation libraries, exporters and other useful components for OpenTelemetry Python