Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .chloggen/add_cloud_account_name.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use this changelog template to create an entry for release notes.
#
# If your change doesn't affect end users you should instead start
# your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
component: cloud

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: "Add `cloud.account.name` attribute."

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
# The values here must be integers.
issues: [1946]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
1 change: 1 addition & 0 deletions docs/attributes-registry/cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A cloud environment (e.g. GCP, Azure, AWS).
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| <a id="cloud-account-id" href="#cloud-account-id">`cloud.account.id`</a> | string | The cloud account ID the resource is assigned to. | `111111111111`; `opentelemetry` | ![Development](https://img.shields.io/badge/-development-blue) |
| <a id="cloud-account-name" href="#cloud-account-name">`cloud.account.name`</a> | string | The human-readable name or alias used to identify cloud accounts. | `development`; `aws-prod` | ![Development](https://img.shields.io/badge/-development-blue) |
| <a id="cloud-availability-zone" href="#cloud-availability-zone">`cloud.availability_zone`</a> | string | Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. [1] | `us-east-1c` | ![Development](https://img.shields.io/badge/-development-blue) |
| <a id="cloud-platform" href="#cloud-platform">`cloud.platform`</a> | string | The cloud platform in use. [2] | `alibaba_cloud_ecs`; `alibaba_cloud_fc`; `alibaba_cloud_openshift` | ![Development](https://img.shields.io/badge/-development-blue) |
| <a id="cloud-provider" href="#cloud-provider">`cloud.provider`</a> | string | Name of the cloud provider. | `alibaba_cloud`; `aws`; `azure` | ![Development](https://img.shields.io/badge/-development-blue) |
Expand Down
1 change: 1 addition & 0 deletions docs/resource/cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
|---|---|---|---|---|---|
| [`cloud.account.id`](/docs/attributes-registry/cloud.md) | string | The cloud account ID the resource is assigned to. | `111111111111`; `opentelemetry` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
| [`cloud.account.name`](/docs/attributes-registry/cloud.md) | string | The human-readable name or alias used to identify cloud accounts. | `development`; `aws-prod` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
| [`cloud.availability_zone`](/docs/attributes-registry/cloud.md) | string | Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. [1] | `us-east-1c` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
| [`cloud.platform`](/docs/attributes-registry/cloud.md) | string | The cloud platform in use. [2] | `alibaba_cloud_ecs`; `alibaba_cloud_fc`; `alibaba_cloud_openshift` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
| [`cloud.provider`](/docs/attributes-registry/cloud.md) | string | Name of the cloud provider. | `alibaba_cloud`; `aws`; `azure` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
Expand Down
6 changes: 6 additions & 0 deletions model/cloud/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ groups:
brief: >
The cloud account ID the resource is assigned to.
examples: ['111111111111', 'opentelemetry']
- id: cloud.account.name
type: string
brief: >
The human-readable name or alias used to identify cloud accounts.
examples: [ 'development', 'aws-prod' ]
stability: development
- id: cloud.region
type: string
stability: development
Expand Down
1 change: 1 addition & 0 deletions model/cloud/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ groups:
attributes:
- ref: cloud.provider
- ref: cloud.account.id
- ref: cloud.account.name
- ref: cloud.region
- ref: cloud.resource_id
- ref: cloud.availability_zone
Expand Down