Skip to content

Commit e908470

Browse files
committed
feat: add cloud.account.name
1 parent 647de87 commit e908470

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

.chloggen/add_cloud_account_name.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Use this changelog template to create an entry for release notes.
2+
#
3+
# If your change doesn't affect end users you should instead start
4+
# your pull request title with [chore] or use the "Skip Changelog" label.
5+
6+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
7+
change_type: enhancement
8+
9+
# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
10+
component: cloud
11+
12+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
13+
note: "Add `cloud.account.name` attribute."
14+
15+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
16+
# The values here must be integers.
17+
issues: [1946]
18+
19+
# (Optional) One or more lines of additional information to render under the primary note.
20+
# These lines will be padded with 2 spaces and then inserted directly into the document.
21+
# Use pipe (|) for multiline entries.
22+
subtext:

docs/attributes-registry/cloud.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ A cloud environment (e.g. GCP, Azure, AWS).
1010
| Attribute | Type | Description | Examples | Stability |
1111
|---|---|---|---|---|
1212
| <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) |
13+
| <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) |
1314
| <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) |
1415
| <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) |
1516
| <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) |

docs/resource/cloud.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
1818
|---|---|---|---|---|---|
1919
| [`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) |
20+
| [`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) |
2021
| [`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) |
2122
| [`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) |
2223
| [`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) |

model/cloud/registry.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ groups:
4949
brief: >
5050
The cloud account ID the resource is assigned to.
5151
examples: ['111111111111', 'opentelemetry']
52+
- id: cloud.account.name
53+
type: string
54+
brief: >
55+
The human-readable name or alias used to identify cloud accounts.
56+
examples: [ 'development', 'aws-prod' ]
57+
stability: development
5258
- id: cloud.region
5359
type: string
5460
stability: development

model/cloud/resources.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ groups:
88
attributes:
99
- ref: cloud.provider
1010
- ref: cloud.account.id
11+
- ref: cloud.account.name
1112
- ref: cloud.region
1213
- ref: cloud.resource_id
1314
- ref: cloud.availability_zone

0 commit comments

Comments
 (0)