> Source: https://www.ymotongpoo.com/works/otel-specs-ja/semconv/resource/container/


# Container

<!-- semconv entity.container -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->

**Status:** ![Development](https://img.shields.io/badge/-development-blue)

**type:** `container`

**Description:** コンテナインスタンス。

> [!warning]
> このEntity定義には、roleを持たない属性が含まれています。
> 安定版のEntityは、roleが定義されていない属性を持ってはなりません（MUST NOT）。

**Attributes:**

| Role | Key | Stability | [Requirement Level](/works/otel-specs-ja/semconv/general/attribute-requirement-level/) | Value Type | Description | Example Values |
| --- | --- | --- | --- | --- | --- | --- |
| Other | [`container.id`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/container/) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Recommended` | string | コンテナID。通常はUUIDで、例えば[Dockerコンテナを識別する](https://docs.docker.com/engine/containers/run/#container-identification)ために使われます。UUIDは短縮されている場合があります。 | `a3bf90e006b2` |
| Other | [`container.label.<key>`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/container/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | コンテナのラベル。`<key>`はラベル名、値はラベルの値です。[1] | `nginx` |
| Other | [`container.name`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/container/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | コンテナランタイムが使用するコンテナ名。 | `opentelemetry-autoconf` |
| Other | [`oci.manifest.digest`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/oci/) | ![Development](https://img.shields.io/badge/-development-blue) | `Recommended` | string | OCIイメージマニフェストのダイジェスト。特にコンテナイメージについては、そのコンテナイメージを識別するダイジェストです。[2] | `sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4` |
| Other | [`container.command`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/container/) | ![Development](https://img.shields.io/badge/-development-blue) | `Opt-In` | string | コンテナを実行するために使われたコマンド（つまりコマンド名）。[3] | `otelcontribcol` |
| Other | [`container.command_args`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/container/) | ![Development](https://img.shields.io/badge/-development-blue) | `Opt-In` | string[] | コンテナが実行するすべてのコマンド引数（コマンド・実行ファイル自体を含む）。 | `["otelcontribcol", "--config", "config.yaml"]` |
| Other | [`container.command_line`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/container/) | ![Development](https://img.shields.io/badge/-development-blue) | `Opt-In` | string | コンテナが実行するフルコマンドを表す、単一の文字列。 | `otelcontribcol --config config.yaml` |

**[1] `container.label.<key>`:** 例えば、値が`nginx`であるDockerコンテナラベル`app`は、値`"nginx"`を持つ`container.label.app`属性として記録すべきです（SHOULD）。

**[2] `oci.manifest.digest`:** [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md)、特に[Digestプロパティ](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests)に従います。
例は[Example Image Manifest](https://github.com/opencontainers/image-spec/blob/main/manifest.md#example-image-manifest)にあります。

**[3] `container.command`:** 埋め込まれた認証情報や機密データを使用している場合、潜在的な漏洩を防ぐために、それらを除去することが推奨されます。
<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

