You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This section defines generic attributes for Azure services.
14
+
15
+
**Attributes:**
16
+
17
+
| Key | Stability | Value Type | Description | Example Values |
18
+
| --- | --- | --- | --- | --- |
19
+
| <aid="azure-resourcegroup-name"href="#azure-resourcegroup-name">`azure.resourcegroup.name`</a> || string | The name of the Azure [resource group](https://learn.microsoft.com/azure/azure-resource-manager/management/manage-resource-groups-portal) the resource belongs to. |`my-resource-group`; `rg-myapp-prod`|
20
+
10
21
## Azure Client Library Attributes
11
22
12
23
This section defines generic attributes used by Azure Client Libraries.
| Key | Stability | Value Type | Description | Example Values |
13
13
| --- | --- | --- | --- | --- |
14
-
| <aid="cloud-account-id"href="#cloud-account-id">`cloud.account.id`</a> || string | The cloud account ID the resource is assigned to. |`111111111111`; `opentelemetry`|
15
-
| <aid="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`|
16
-
| <aid="cloud-platform"href="#cloud-platform">`cloud.platform`</a> || string | The cloud platform in use. [2]|`akamai_cloud.compute`; `alibaba_cloud_ecs`; `alibaba_cloud_fc`|
14
+
| <aid="cloud-account-id"href="#cloud-account-id">`cloud.account.id`</a> || string | The cloud account ID the resource is assigned to. [1]|`111111111111`; `opentelemetry`; `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`|
15
+
| <aid="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. [2]|`us-east-1c`|
16
+
| <aid="cloud-platform"href="#cloud-platform">`cloud.platform`</a> || string | The cloud platform in use. [3]|`akamai_cloud.compute`; `alibaba_cloud_ecs`; `alibaba_cloud_fc`|
17
17
| <aid="cloud-provider"href="#cloud-provider">`cloud.provider`</a> || string | Name of the cloud provider. |`akamai_cloud`; `alibaba_cloud`; `aws`|
18
-
| <aid="cloud-region"href="#cloud-region">`cloud.region`</a> || string | The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed. [3]|`us-central1`; `us-east-1`|
19
-
| <aid="cloud-resource-id"href="#cloud-resource-id">`cloud.resource_id`</a> || string | Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP) [4]|`arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`; `//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID`; `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`|
18
+
| <aid="cloud-region"href="#cloud-region">`cloud.region`</a> || string | The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed. [4]|`us-central1`; `us-east-1`|
19
+
| <aid="cloud-resource-id"href="#cloud-resource-id">`cloud.resource_id`</a> || string | Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP) [5]|`arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`; `//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID`; `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`|
20
20
21
-
**[1]`cloud.availability_zone`:**Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
21
+
**[1]`cloud.account.id`:**For Azure, this is the subscription ID.
22
22
23
-
**[2]`cloud.platform`:**The prefix of the service SHOULD match the one specified in `cloud.provider`.
23
+
**[2]`cloud.availability_zone`:**Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
24
24
25
-
**[3]`cloud.region`:**Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091).
25
+
**[3]`cloud.platform`:**The prefix of the service SHOULD match the one specified in `cloud.provider`.
26
26
27
-
**[4]`cloud.resource_id`:** On some cloud providers, it may not be possible to determine the full ID at startup,
27
+
**[4]`cloud.region`:** Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091).
28
+
29
+
**[5]`cloud.resource_id`:** On some cloud providers, it may not be possible to determine the full ID at startup,
28
30
so it may be necessary to set `cloud.resource_id` as a span attribute instead.
29
31
30
32
The exact value to use for `cloud.resource_id` depends on the cloud provider.
Copy file name to clipboardExpand all lines: docs/registry/entities/cloud.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,22 @@
19
19
20
20
| Role | Key | Stability |[Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/)| Value Type | Description | Example Values |
21
21
| --- | --- | --- | --- | --- | --- | --- |
22
-
| Other |[`cloud.account.id`](/docs/registry/attributes/cloud.md)||`Recommended`| string | The cloud account ID the resource is assigned to. |`111111111111`; `opentelemetry`|
23
-
| Other |[`cloud.availability_zone`](/docs/registry/attributes/cloud.md)||`Recommended`| 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`|
24
-
| Other |[`cloud.platform`](/docs/registry/attributes/cloud.md)||`Recommended`| string | The cloud platform in use. [2]|`akamai_cloud.compute`; `alibaba_cloud_ecs`; `alibaba_cloud_fc`|
22
+
| Other |[`cloud.account.id`](/docs/registry/attributes/cloud.md)||`Recommended`| string | The cloud account ID the resource is assigned to. [1]|`111111111111`; `opentelemetry`; `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`|
23
+
| Other |[`cloud.availability_zone`](/docs/registry/attributes/cloud.md)||`Recommended`| string | Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. [2]|`us-east-1c`|
24
+
| Other |[`cloud.platform`](/docs/registry/attributes/cloud.md)||`Recommended`| string | The cloud platform in use. [3]|`akamai_cloud.compute`; `alibaba_cloud_ecs`; `alibaba_cloud_fc`|
25
25
| Other |[`cloud.provider`](/docs/registry/attributes/cloud.md)||`Recommended`| string | Name of the cloud provider. |`akamai_cloud`; `alibaba_cloud`; `aws`|
26
-
| Other |[`cloud.region`](/docs/registry/attributes/cloud.md)||`Recommended`| string | The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed. [3]|`us-central1`; `us-east-1`|
27
-
| Other |[`cloud.resource_id`](/docs/registry/attributes/cloud.md)||`Recommended`| string | Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP) [4]|`arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`; `//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID`; `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`|
26
+
| Other |[`cloud.region`](/docs/registry/attributes/cloud.md)||`Recommended`| string | The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed. [4]|`us-central1`; `us-east-1`|
27
+
| Other |[`cloud.resource_id`](/docs/registry/attributes/cloud.md)||`Recommended`| string | Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP) [5]|`arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`; `//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID`; `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`|
28
28
29
-
**[1]`cloud.availability_zone`:**Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
29
+
**[1]`cloud.account.id`:**For Azure, this is the subscription ID.
30
30
31
-
**[2]`cloud.platform`:**The prefix of the service SHOULD match the one specified in `cloud.provider`.
31
+
**[2]`cloud.availability_zone`:**Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
32
32
33
-
**[3]`cloud.region`:**Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091).
33
+
**[3]`cloud.platform`:**The prefix of the service SHOULD match the one specified in `cloud.provider`.
34
34
35
-
**[4]`cloud.resource_id`:** On some cloud providers, it may not be possible to determine the full ID at startup,
35
+
**[4]`cloud.region`:** Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091).
36
+
37
+
**[5]`cloud.resource_id`:** On some cloud providers, it may not be possible to determine the full ID at startup,
36
38
so it may be necessary to set `cloud.resource_id` as a span attribute instead.
37
39
38
40
The exact value to use for `cloud.resource_id` depends on the cloud provider.
0 commit comments