Skip to content

Commit c35c212

Browse files
legendecasarminrucarlosalberto
authored
[semantic conventions] add alibaba cloud as a cloud provider (#1831)
Co-authored-by: Armin Ruech <[email protected]> Co-authored-by: Carlos Alberto Cortez <[email protected]>
1 parent b76e16f commit c35c212

File tree

6 files changed

+30
-8
lines changed

6 files changed

+30
-8
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ release.
2424

2525
### Semantic Conventions
2626

27+
- Adding alibaba cloud as a cloud provider.
28+
([#1831](https://github.com/open-telemetry/opentelemetry-specification/pull/1831))
29+
2730
### Compatibility
2831

2932
### OpenTelemetry Protocol

semantic_conventions/resource/cloud.yaml

+14-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ groups:
88
type:
99
allow_custom_values: true
1010
members:
11+
- id: Alibaba Cloud
12+
value: 'alibaba_cloud'
13+
brief: 'Alibaba Cloud'
1114
- id: AWS
1215
value: 'aws'
1316
brief: 'Amazon Web Services'
@@ -29,8 +32,10 @@ groups:
2932
brief: >
3033
The geographical region the resource is running. Refer to your
3134
provider's docs to see the available regions, for example
32-
[AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or
33-
[Google Cloud regions](https://cloud.google.com/about/locations).
35+
[Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm),
36+
[AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/),
37+
[Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/),
38+
or [Google Cloud regions](https://cloud.google.com/about/locations).
3439
examples: ['us-central1', 'us-east-1']
3540
- id: availability_zone
3641
type: string
@@ -39,12 +44,18 @@ groups:
3944
to increase availability. Availability zone represents the
4045
zone where the resource is running.
4146
note: >
42-
Availability zones are called "zones" on Google Cloud.
47+
Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
4348
examples: ['us-east-1c']
4449
- id: platform
4550
type:
4651
allow_custom_values: true
4752
members:
53+
- id: alibaba_cloud_ecs
54+
value: 'alibaba_cloud_ecs'
55+
brief: Alibaba Cloud Elastic Compute Service
56+
- id: alibaba_cloud_fc
57+
value: 'alibaba_cloud_fc'
58+
brief: Alibaba Cloud Function Compute
4859
- id: aws_ec2
4960
value: 'aws_ec2'
5061
brief: AWS Elastic Compute Cloud

semantic_conventions/trace/faas.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ groups:
154154
type:
155155
allow_custom_values: true
156156
members:
157+
- id: Alibaba Cloud
158+
value: 'alibaba_cloud'
159+
brief: 'Alibaba Cloud'
157160
- id: AWS
158161
value: 'aws'
159162
brief: 'Amazon Web Services'

specification/resource/semantic_conventions/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ resources can only be defined for providers listed as a valid `cloud.provider` i
167167
[Cloud](./cloud.md) and below. Provider-specific attributes all reside in the `cloud_provider` directory.
168168
Valid cloud providers are:
169169

170+
- [Alibaba Cloud](https://www.alibabacloud.com/) (`alibaba_cloud`)
170171
- [Amazon Web Services](https://aws.amazon.com/) ([`aws`](cloud_provider/aws/README.md))
171172
- [Google Cloud Platform](https://cloud.google.com/) (`gcp`)
172173
- [Microsoft Azure](https://azure.microsoft.com/) (`azure`)

specification/resource/semantic_conventions/cloud.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@
99
<!-- semconv cloud -->
1010
| Attribute | Type | Description | Examples | Required |
1111
|---|---|---|---|---|
12-
| `cloud.provider` | string | Name of the cloud provider. | `aws` | No |
12+
| `cloud.provider` | string | Name of the cloud provider. | `alibaba_cloud` | No |
1313
| `cloud.account.id` | string | The cloud account ID the resource is assigned to. | `111111111111`; `opentelemetry` | No |
14-
| `cloud.region` | string | The geographical region the resource is running. Refer to your provider's docs to see the available regions, for example [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations). | `us-central1`; `us-east-1` | No |
14+
| `cloud.region` | string | The geographical region the resource is running. 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/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations). | `us-central1`; `us-east-1` | No |
1515
| `cloud.availability_zone` | 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` | No |
16-
| `cloud.platform` | string | The cloud platform in use. [2] | `aws_ec2` | No |
16+
| `cloud.platform` | string | The cloud platform in use. [2] | `alibaba_cloud_ecs` | No |
1717

18-
**[1]:** Availability zones are called "zones" on Google Cloud.
18+
**[1]:** Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
1919

2020
**[2]:** The prefix of the service SHOULD match the one specified in `cloud.provider`.
2121

2222
`cloud.provider` MUST be one of the following or, if none of the listed values apply, a custom value:
2323

2424
| Value | Description |
2525
|---|---|
26+
| `alibaba_cloud` | Alibaba Cloud |
2627
| `aws` | Amazon Web Services |
2728
| `azure` | Microsoft Azure |
2829
| `gcp` | Google Cloud Platform |
@@ -31,6 +32,8 @@
3132

3233
| Value | Description |
3334
|---|---|
35+
| `alibaba_cloud_ecs` | Alibaba Cloud Elastic Compute Service |
36+
| `alibaba_cloud_fc` | Alibaba Cloud Function Compute |
3437
| `aws_ec2` | AWS Elastic Compute Cloud |
3538
| `aws_ecs` | AWS Elastic Container Service |
3639
| `aws_eks` | AWS Elastic Kubernetes Service |

specification/trace/semantic_conventions/faas.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ which the invoked FaaS instance reports about itself, if it's instrumented.
103103
| Attribute | Type | Description | Examples | Required |
104104
|---|---|---|---|---|
105105
| `faas.invoked_name` | string | The name of the invoked function. [1] | `my-function` | Yes |
106-
| `faas.invoked_provider` | string | The cloud provider of the invoked function. [2] | `aws` | Yes |
106+
| `faas.invoked_provider` | string | The cloud provider of the invoked function. [2] | `alibaba_cloud` | Yes |
107107
| `faas.invoked_region` | string | The cloud region of the invoked function. [3] | `eu-central-1` | Conditional [4] |
108108

109109
**[1]:** SHOULD be equal to the `faas.name` resource attribute of the invoked function.
@@ -118,6 +118,7 @@ which the invoked FaaS instance reports about itself, if it's instrumented.
118118

119119
| Value | Description |
120120
|---|---|
121+
| `alibaba_cloud` | Alibaba Cloud |
121122
| `aws` | Amazon Web Services |
122123
| `azure` | Microsoft Azure |
123124
| `gcp` | Google Cloud Platform |

0 commit comments

Comments
 (0)