NOTICE Semantic Conventions are moving to a new location.
No changes to this document are allowed.
Description: A cloud infrastructure (e.g. GCP, Azure, AWS).
|string||Name of the cloud provider.||Recommended|
|string||The cloud account ID the resource is assigned to.||Recommended|
|string||The geographical region the resource is running. ||Recommended|
|string||Cloud provider-specific native identifier of the monitored cloud resource (e.g. an ARN on AWS, a fully qualified resource ID on Azure, a full resource name on GCP) ||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. ||Recommended|
|string||The cloud platform in use. ||Recommended|
: 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.
The following well-known definitions MUST be used if you set this attribute and they apply:
- AWS Lambda: The function ARN. Take care not to use the “invoked ARN” directly but replace any alias suffix with the resolved function version, as the same runtime instance may be invokable with multiple different aliases.
- GCP: The URI of the resource
- Azure: The Fully Qualified Resource ID of the invoked function,
not the function app, having the form
/subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>. This means that a span attribute MUST be used, as an Azure function app can host multiple functions that would usually share a TracerProvider.
: Availability zones are called “zones” on Alibaba Cloud and Google Cloud.
: The prefix of the service SHOULD match the one specified in
cloud.provider has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|Amazon Web Services|
|Google Cloud Platform|
|Heroku Platform as a Service|
cloud.platform has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|Alibaba Cloud Elastic Compute Service|
|Alibaba Cloud Function Compute|
|Red Hat OpenShift on Alibaba Cloud|
|AWS Elastic Compute Cloud|
|AWS Elastic Container Service|
|AWS Elastic Kubernetes Service|
|AWS Elastic Beanstalk|
|AWS App Runner|
|Red Hat OpenShift on AWS (ROSA)|
|Azure Virtual Machines|
|Azure Container Instances|
|Azure Kubernetes Service|
|Azure App Service|
|Azure Red Hat OpenShift|
|Google Cloud Compute Engine (GCE)|
|Google Cloud Run|
|Google Cloud Kubernetes Engine (GKE)|
|Google Cloud Functions (GCF)|
|Google Cloud App Engine (GAE)|
|Red Hat OpenShift on Google Cloud|
|Red Hat OpenShift on IBM Cloud|
|Tencent Cloud Cloud Virtual Machine (CVM)|
|Tencent Cloud Elastic Kubernetes Service (EKS)|
|Tencent Cloud Serverless Cloud Function (SCF)|