この記事は英語の原文を日本語に翻訳したものです。原文: https://opentelemetry.io/docs/specs/semconv/runtime/cpython-metrics/
翻訳元: open-telemetry/semantic-conventions v1.44.0(コミット e10a930)
CPythonランタイムメトリクスに関するセマンティック規約
ステータス: Development
この文書では、OpenTelemetryにおけるCPythonランタイムメトリクスに関するセマンティック規約を定義します。
CPythonのガーベジコレクション
ステータス: development
Description: 名前空間cpython.gc.*の下で取得される、ガーベジコレクションに関するCPythonメトリクス。
メトリクス: cpython.gc.collections
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
cpython.gc.collections | Counter | {collection} | インタプリタの起動以降、ある世代がコレクトされた回数。[1] |
[1]: このメトリクスはgc.stats()からのデータを報告します。
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
cpython.gc.generation | Required | int | ガーベジコレクターのコレクション世代の値。 | 0; 1; 2 |
cpython.gc.generationには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
0 | 世代0 | |
1 | 世代1 | |
2 | 世代2 |
メトリクス: cpython.gc.collected_objects
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
cpython.gc.collected_objects | Counter | {object} | インタプリタの起動以降、ある世代の中でコレクトされたオブジェクトの総数。[1] |
[1]: このメトリクスはgc.stats()からのデータを報告します。
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
cpython.gc.generation | Required | int | ガーベジコレクターのコレクション世代の値。 | 0; 1; 2 |
cpython.gc.generationには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
0 | 世代0 | |
1 | 世代1 | |
2 | 世代2 |
メトリクス: cpython.gc.uncollectable_objects
このメトリクスは推奨です。
| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations |
|---|---|---|---|---|---|
cpython.gc.uncollectable_objects | Counter | {object} | インタプリタの起動以降、ある世代の中でコレクト不能と判明したオブジェクトの総数。[1] |
[1]: このメトリクスはgc.stats()からのデータを報告します。
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values |
|---|---|---|---|---|---|
cpython.gc.generation | Required | int | ガーベジコレクターのコレクション世代の値。 | 0; 1; 2 |
cpython.gc.generationには、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず(MUST)、それ以外の場合は独自の値を使ってもかまいません(MAY)。
| Value | Description | Stability |
|---|---|---|
0 | 世代0 | |
1 | 世代1 | |
2 | 世代2 |