@@ -17,61 +17,61 @@ package conventions
17
17
// OpenTelemetry Semantic Convention values for Resource attribute names.
18
18
// See: https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification/resource/semantic_conventions/README.md
19
19
const (
20
- AttributeCloudAccount = "cloud.account.id"
21
- AttributeCloudProvider = "cloud.provider "
22
- AttributeCloudRegion = "cloud.region "
23
- AttributeCloudZone = "cloud.zone "
24
- AttributeCloudInfrastructureService = "cloud.infrastructure_service "
25
- AttributeContainerID = "container.id"
26
- AttributeContainerImage = "container.image.name"
27
- AttributeContainerName = "container.name"
28
- AttributeContainerTag = "container.image.tag"
29
- AttributeDeploymentEnvironment = "deployment.environment"
30
- AttributeFaasID = "faas.id"
31
- AttributeFaasInstance = "faas.instance"
32
- AttributeFaasName = "faas.name"
33
- AttributeFaasVersion = "faas.version"
34
- AttributeHostID = "host.id"
35
- AttributeHostImageID = "host.image.id"
36
- AttributeHostImageName = "host.image.name"
37
- AttributeHostImageVersion = "host.image.version"
38
- AttributeHostName = "host.name"
39
- AttributeHostType = "host.type"
40
- AttributeK8sCluster = "k8s.cluster.name"
41
- AttributeK8sContainer = "k8s.container.name"
42
- AttributeK8sCronJob = "k8s.cronjob.name"
43
- AttributeK8sCronJobUID = "k8s.cronjob.uid"
44
- AttributeK8sDaemonSet = "k8s.daemonset.name"
45
- AttributeK8sDaemonSetUID = "k8s.daemonset.uid"
46
- AttributeK8sDeployment = "k8s.deployment.name"
47
- AttributeK8sDeploymentUID = "k8s.deployment.uid"
48
- AttributeK8sJob = "k8s.job.name"
49
- AttributeK8sJobUID = "k8s.job.uid"
50
- AttributeK8sNamespace = "k8s.namespace.name"
51
- AttributeK8sNodeName = "k8s.node.name"
52
- AttributeK8sNodeUID = "k8s.node.uid"
53
- AttributeK8sPod = "k8s.pod.name"
54
- AttributeK8sPodUID = "k8s.pod.uid"
55
- AttributeK8sReplicaSet = "k8s.replicaset.name"
56
- AttributeK8sReplicaSetUID = "k8s.replicaset.uid"
57
- AttributeK8sStatefulSet = "k8s.statefulset.name"
58
- AttributeK8sStatefulSetUID = "k8s.statefulset.uid"
59
- AttributeOSType = "os.type "
60
- AttributeOSDescription = "os.description "
61
- AttributeProcessCommand = "process.command"
62
- AttributeProcessCommandLine = "process.command_line"
63
- AttributeProcessExecutableName = "process.executable.name"
64
- AttributeProcessExecutablePath = "process.executable.path"
65
- AttributeProcessID = "process.pid"
66
- AttributeProcessOwner = "process.owner"
67
- AttributeServiceInstance = "service.instance.id"
68
- AttributeServiceName = "service.name"
69
- AttributeServiceNamespace = "service.namespace"
70
- AttributeServiceVersion = "service.version"
71
- AttributeTelemetryAutoVersion = "telemetry.auto.version"
72
- AttributeTelemetrySDKLanguage = "telemetry.sdk.language"
73
- AttributeTelemetrySDKName = "telemetry.sdk.name"
74
- AttributeTelemetrySDKVersion = "telemetry.sdk.version"
20
+ AttributeCloudAccount = "cloud.account.id"
21
+ AttributeCloudAvailabilityZone = "cloud.availability_zone "
22
+ AttributeCloudPlatform = "cloud.platform "
23
+ AttributeCloudProvider = "cloud.provider "
24
+ AttributeCloudRegion = "cloud.region "
25
+ AttributeContainerID = "container.id"
26
+ AttributeContainerImage = "container.image.name"
27
+ AttributeContainerName = "container.name"
28
+ AttributeContainerTag = "container.image.tag"
29
+ AttributeDeploymentEnvironment = "deployment.environment"
30
+ AttributeFaasID = "faas.id"
31
+ AttributeFaasInstance = "faas.instance"
32
+ AttributeFaasName = "faas.name"
33
+ AttributeFaasVersion = "faas.version"
34
+ AttributeHostID = "host.id"
35
+ AttributeHostImageID = "host.image.id"
36
+ AttributeHostImageName = "host.image.name"
37
+ AttributeHostImageVersion = "host.image.version"
38
+ AttributeHostName = "host.name"
39
+ AttributeHostType = "host.type"
40
+ AttributeK8sCluster = "k8s.cluster.name"
41
+ AttributeK8sContainer = "k8s.container.name"
42
+ AttributeK8sCronJob = "k8s.cronjob.name"
43
+ AttributeK8sCronJobUID = "k8s.cronjob.uid"
44
+ AttributeK8sDaemonSet = "k8s.daemonset.name"
45
+ AttributeK8sDaemonSetUID = "k8s.daemonset.uid"
46
+ AttributeK8sDeployment = "k8s.deployment.name"
47
+ AttributeK8sDeploymentUID = "k8s.deployment.uid"
48
+ AttributeK8sJob = "k8s.job.name"
49
+ AttributeK8sJobUID = "k8s.job.uid"
50
+ AttributeK8sNamespace = "k8s.namespace.name"
51
+ AttributeK8sNodeName = "k8s.node.name"
52
+ AttributeK8sNodeUID = "k8s.node.uid"
53
+ AttributeK8sPod = "k8s.pod.name"
54
+ AttributeK8sPodUID = "k8s.pod.uid"
55
+ AttributeK8sReplicaSet = "k8s.replicaset.name"
56
+ AttributeK8sReplicaSetUID = "k8s.replicaset.uid"
57
+ AttributeK8sStatefulSet = "k8s.statefulset.name"
58
+ AttributeK8sStatefulSetUID = "k8s.statefulset.uid"
59
+ AttributeOSDescription = "os.description "
60
+ AttributeOSType = "os.type "
61
+ AttributeProcessCommand = "process.command"
62
+ AttributeProcessCommandLine = "process.command_line"
63
+ AttributeProcessExecutableName = "process.executable.name"
64
+ AttributeProcessExecutablePath = "process.executable.path"
65
+ AttributeProcessID = "process.pid"
66
+ AttributeProcessOwner = "process.owner"
67
+ AttributeServiceInstance = "service.instance.id"
68
+ AttributeServiceName = "service.name"
69
+ AttributeServiceNamespace = "service.namespace"
70
+ AttributeServiceVersion = "service.version"
71
+ AttributeTelemetryAutoVersion = "telemetry.auto.version"
72
+ AttributeTelemetrySDKLanguage = "telemetry.sdk.language"
73
+ AttributeTelemetrySDKName = "telemetry.sdk.name"
74
+ AttributeTelemetrySDKVersion = "telemetry.sdk.version"
75
75
)
76
76
77
77
// OpenTelemetry Semantic Convention values for Resource attribute "telemetry.sdk.language" values.
@@ -97,24 +97,24 @@ const (
97
97
AttributeCloudProviderGCP = "gcp"
98
98
)
99
99
100
- // OpenTelemetry Semantic Convention values for Resource attribute "cloud.infrastructure_service " values.
100
+ // OpenTelemetry Semantic Convention values for Resource attribute "cloud.platform " values.
101
101
// See: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/cloud.md
102
102
const (
103
- AttributeCloudProviderAWSEC2 = "aws_ec2"
104
- AttributeCloudProviderAWSECS = "aws_ecs"
105
- AttributeCloudProviderAWSEKS = "aws_eks"
106
- AttributeCloudProviderAWSLambda = "aws_lambda"
107
- AttributeCloudProviderAWSElasticBeanstalk = "aws_elastic_beanstalk"
108
- AttributeCloudProviderAzureVM = "azure_vm"
109
- AttributeCloudProviderAzureContainerInstances = "azure_container_instances"
110
- AttributeCloudProviderAzureAKS = "azure_aks"
111
- AttributeCloudProviderAzureFunctions = "azure_functions"
112
- AttributeCloudProviderAzureAppService = "azure_app_service"
113
- AttributeCloudProviderGCPComputeEngine = "gcp_compute_engine"
114
- AttributeCloudProviderGCPCloudRun = "gcp_cloud_run"
115
- AttributeCloudProviderGCPGKE = "gcp_gke"
116
- AttributeCloudProviderGCPCloudFunctions = "gcp_cloud_functions"
117
- AttributeCloudProviderGCPAppEngine = "gcp_app_engine"
103
+ AttributeCloudPlatformAWSEC2 = "aws_ec2"
104
+ AttributeCloudPlatformAWSECS = "aws_ecs"
105
+ AttributeCloudPlatformAWSEKS = "aws_eks"
106
+ AttributeCloudPlatformAWSLambda = "aws_lambda"
107
+ AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk"
108
+ AttributeCloudPlatformAzureVM = "azure_vm"
109
+ AttributeCloudPlatformAzureContainerInstances = "azure_container_instances"
110
+ AttributeCloudPlatformAzureAKS = "azure_aks"
111
+ AttributeCloudPlatformAzureFunctions = "azure_functions"
112
+ AttributeCloudPlatformAzureAppService = "azure_app_service"
113
+ AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine"
114
+ AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run"
115
+ AttributeCloudPlatformGCPGKE = "gcp_gke"
116
+ AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions"
117
+ AttributeCloudPlatformGCPAppEngine = "gcp_app_engine"
118
118
)
119
119
120
120
// GetResourceSemanticConventionAttributeNames a slice with all the Resource Semantic Conventions attribute names.
@@ -123,8 +123,8 @@ func GetResourceSemanticConventionAttributeNames() []string {
123
123
AttributeCloudAccount ,
124
124
AttributeCloudProvider ,
125
125
AttributeCloudRegion ,
126
- AttributeCloudZone ,
127
- AttributeCloudInfrastructureService ,
126
+ AttributeCloudAvailabilityZone ,
127
+ AttributeCloudPlatform ,
128
128
AttributeContainerID ,
129
129
AttributeContainerImage ,
130
130
AttributeContainerName ,
0 commit comments