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


# Deployment

<!-- semconv entity.deployment -->
<!-- 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:** `deployment`

**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 | [`deployment.environment.name`](https://opentelemetry.io/docs/specs/semconv/registry/attributes/deployment/) | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | `Recommended` | string | [デプロイメント環境](https://wikipedia.org/wiki/Deployment_environment)（デプロイメントティアとも呼ばれます）の名前。[1] | `staging`; `production` |

**[1] `deployment.environment.name`:** `deployment.environment.name`は、`service.namespace`、`service.name`、`service.instance.id`のリソース属性によって定義される一意性の制約には影響しません。
これは、次の属性の組み合わせを持つリソースが、同じサービスを識別しているとみなさなければならないことを意味します（MUST）。

- `service.name=frontend`、`deployment.environment.name=production`
- `service.name=frontend`、`deployment.environment.name=staging`

---

`deployment.environment.name`には、次のよく知られた値の一覧があります。いずれかが該当する場合はその値を使用しなければならず（MUST）、それ以外の場合は独自の値を使ってもかまいません（MAY）。

| Value | Description | Stability |
| --- | --- | --- |
| `development` | 開発環境 | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `production` | 本番環境 | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `staging` | ステージング環境 | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `test` | テスト環境 | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

