Skip to content

Commit 2756932

Browse files
willarmirosanuraagaarminru
authored
added cloud.infrastructure_service attribute to resource spec (open-telemetry#1112)
Co-authored-by: Anuraag Agrawal <[email protected]> Co-authored-by: Armin Ruech <[email protected]>
1 parent 9a9441f commit 2756932

File tree

2 files changed

+77
-0
lines changed
  • semantic_conventions/resource
  • specification/resource/semantic_conventions

2 files changed

+77
-0
lines changed

semantic_conventions/resource/cloud.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,57 @@ groups:
3737
note: >
3838
In AWS, this is called availability-zone.
3939
examples: ['us-central1-a']
40+
- id: infrastructure_service
41+
type:
42+
allow_custom_values: true
43+
members:
44+
- id: AWS_EC2
45+
value: 'aws_ec2'
46+
brief: AWS Elastic Compute Cloud
47+
- id: AWS_ECS
48+
value: 'aws_ecs'
49+
brief: AWS Elastic Container Service
50+
- id: AWS_EKS
51+
value: 'aws_eks'
52+
brief: AWS Elastic Kubernetes Service
53+
- id: AWS_Lambda
54+
value: 'aws_lambda'
55+
brief: AWS Lambda
56+
- id: AWS_ElasticBeanstalk
57+
value: 'aws_elastic_beanstalk'
58+
brief: AWS Elastic Beanstalk
59+
- id: Azure_VM
60+
value: 'azure_vm'
61+
brief: Azure Virtual Machines
62+
- id: Azure_ContainerInstances
63+
value: 'azure_container_instances'
64+
brief: Azure Container Instances
65+
- id: Azure_AKS
66+
value: 'azure_aks'
67+
brief: Azure Kubernetes Service
68+
- id: Azure_Functions
69+
value: 'azure_functions'
70+
brief: Azure Functions
71+
- id: Azure_AppService
72+
value: 'azure_app_service'
73+
brief: Azure App Service
74+
- id: GCP_ComputeEngine
75+
value: 'gcp_compute_engine'
76+
brief: GCP Compute Engine
77+
- id: GCP_CloudRun
78+
value: 'gcp_cloud_run'
79+
brief: GCP Cloud Run
80+
- id: GCP_GKE
81+
value: 'gcp_gke'
82+
brief: Google Kubernetes Engine
83+
- id: GCP_CloudFunctions
84+
value: 'gcp_cloud_functions'
85+
brief: GCP Cloud Functions
86+
- id: GCP_AppEngine
87+
value: 'gcp_app_engine'
88+
brief: GCP App Engine
89+
brief: >
90+
The cloud infrastructure resource in use.
91+
note: >
92+
The prefix of the service SHOULD match the one specified in `cloud.provider`.
93+
examples: ['aws_ec2', 'azure_vm', 'gcp_compute_engine']

specification/resource/semantic_conventions/cloud.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,37 @@
1111
| `cloud.account.id` | string | The cloud account ID used to identify different entities. | `opentelemetry` | No |
1212
| `cloud.region` | string | A specific geographical location where different entities can run. | `us-central1` | No |
1313
| `cloud.zone` | string | Zones are a sub set of the region connected through low-latency links. [1] | `us-central1-a` | No |
14+
| `cloud.infrastructure_service` | string | The cloud infrastructure resource in use. [2] | `aws_ec2`<br>`azure_vm`<br>`gcp_compute_engine` | No |
1415

1516
**[1]:** In AWS, this is called availability-zone.
1617

18+
**[2]:** The prefix of the service SHOULD match the one specified in `cloud.provider`.
19+
1720
`cloud.provider` MUST be one of the following or, if none of the listed values apply, a custom value:
1821

1922
| Value | Description |
2023
|---|---|
2124
| `aws` | Amazon Web Services |
2225
| `azure` | Microsoft Azure |
2326
| `gcp` | Google Cloud Platform |
27+
28+
`cloud.infrastructure_service` MUST be one of the following or, if none of the listed values apply, a custom value:
29+
30+
| Value | Description |
31+
|---|---|
32+
| `aws_ec2` | AWS Elastic Compute Cloud |
33+
| `aws_ecs` | AWS Elastic Container Service |
34+
| `aws_eks` | AWS Elastic Kubernetes Service |
35+
| `aws_lambda` | AWS Lambda |
36+
| `aws_elastic_beanstalk` | AWS Elastic Beanstalk |
37+
| `azure_vm` | Azure Virtual Machines |
38+
| `azure_container_instances` | Azure Container Instances |
39+
| `azure_aks` | Azure Kubernetes Service |
40+
| `azure_functions` | Azure Functions |
41+
| `azure_app_service` | Azure App Service |
42+
| `gcp_compute_engine` | GCP Compute Engine |
43+
| `gcp_cloud_run` | GCP Cloud Run |
44+
| `gcp_gke` | Google Kubernetes Engine |
45+
| `gcp_cloud_functions` | GCP Cloud Functions |
46+
| `gcp_app_engine` | GCP App Engine |
2447
<!-- endsemconv -->

0 commit comments

Comments
 (0)