-
Notifications
You must be signed in to change notification settings - Fork 360
Add semantic conventions for Azure subscription ID and resource group #3722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kathiehuang
wants to merge
2
commits into
open-telemetry:main
Choose a base branch
from
kathiehuang:add-azure-semantic-conventions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| change_type: enhancement | ||
|
|
||
| component: azure | ||
|
|
||
| note: Add `azure.resourcegroup.name` attribute for the name of the Azure resource group the resource belongs to and document that `cloud.account.id` maps to the Azure subscription ID. | ||
|
|
||
| issues: [3697, 3708] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,20 +11,22 @@ A cloud environment (e.g. GCP, Azure, AWS). | |
|
|
||
| | Key | Stability | Value Type | Description | Example Values | | ||
| | --- | --- | --- | --- | --- | | ||
| | <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` | | ||
| | <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` | | ||
| | <a id="cloud-platform" href="#cloud-platform">`cloud.platform`</a> |  | string | The cloud platform in use. [2] | `akamai_cloud.compute`; `alibaba_cloud_ecs`; `alibaba_cloud_fc` | | ||
| | <a id="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` | | ||
| | <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. [2] | `us-east-1c` | | ||
| | <a id="cloud-platform" href="#cloud-platform">`cloud.platform`</a> |  | string | The cloud platform in use. [3] | `akamai_cloud.compute`; `alibaba_cloud_ecs`; `alibaba_cloud_fc` | | ||
| | <a id="cloud-provider" href="#cloud-provider">`cloud.provider`</a> |  | string | Name of the cloud provider. | `akamai_cloud`; `alibaba_cloud`; `aws` | | ||
| | <a id="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` | | ||
| | <a id="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>` | | ||
| | <a id="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` | | ||
| | <a id="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>` | | ||
|
|
||
| **[1] `cloud.availability_zone`:** Availability zones are called "zones" on Alibaba Cloud and Google Cloud. | ||
| **[1] `cloud.account.id`:** For Azure, this is the subscription ID. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think these notes are good to help indicate what to expect per cloud provider. |
||
|
|
||
| **[2] `cloud.platform`:** The prefix of the service SHOULD match the one specified in `cloud.provider`. | ||
| **[2] `cloud.availability_zone`:** Availability zones are called "zones" on Alibaba Cloud and Google Cloud. | ||
|
|
||
| **[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). | ||
| **[3] `cloud.platform`:** The prefix of the service SHOULD match the one specified in `cloud.provider`. | ||
|
|
||
| **[4] `cloud.resource_id`:** On some cloud providers, it may not be possible to determine the full ID at startup, | ||
| **[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). | ||
|
|
||
| **[5] `cloud.resource_id`:** On some cloud providers, it may not be possible to determine the full ID at startup, | ||
| so it may be necessary to set `cloud.resource_id` as a span attribute instead. | ||
|
|
||
| The exact value to use for `cloud.resource_id` depends on the cloud provider. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.