cloud.resource_id
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)
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 invocable 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/<SUBSCRIPTION_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.
Examples
- 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>
Used by
entitys (2)
- cloud
- faas
events (2)
- az.resource.log
- azure.resource.log
spans (3)
- faas.datasource.server
- faas.server
- faas.timer.server
* required on that signal.
History
Stability label respelled from experimental to development.
Already present at v1.30.0, the oldest release tracked here (experimental).