{"source":"semconv","version":"1.44.0","attribute":{"id":"cloud.resource_id","type":"string","stability":"development","brief":"Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP)","note":"On some cloud providers, it may not be possible to determine the full ID at startup,\nso it may be necessary to set `cloud.resource_id` as a span attribute instead.\n\nThe exact value to use for `cloud.resource_id` depends on the cloud provider.\nThe following well-known definitions MUST be used if you set this attribute and they apply:\n\n- **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).\n  Take care not to use the \"invoked ARN\" directly but replace any\n  [alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html)\n  with the resolved function version, as the same runtime instance may be invocable with\n  multiple different aliases.\n- **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names)\n- **Azure:** The [Fully Qualified Resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) of the invoked function,\n  *not* the function app, having the form\n  `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`.\n  This means that a span attribute MUST be used, as an Azure function app can host multiple functions that would usually share\n  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>"],"namespace":"cloud","definedIn":"model/cloud/registry.yaml","usedBy":[{"groupId":"entity.cloud","groupType":"entity","signalName":"cloud","requirementLevel":"recommended"},{"groupId":"entity.faas","groupType":"entity","signalName":"faas","requirementLevel":"recommended"},{"groupId":"event.az.resource.log","groupType":"event","signalName":"az.resource.log","requirementLevel":"recommended"},{"groupId":"event.azure.resource.log","groupType":"event","signalName":"azure.resource.log","requirementLevel":"recommended"},{"groupId":"faas.attributes.server","groupType":"attribute_group","requirementLevel":"recommended"},{"groupId":"faas.datasource.server","groupType":"span","signalName":"faas.datasource.server","requirementLevel":"recommended"},{"groupId":"faas.server","groupType":"span","signalName":"faas.server","requirementLevel":"recommended"},{"groupId":"faas.timer.server","groupType":"span","signalName":"faas.timer.server","requirementLevel":"recommended"}]},"history":[{"version":"1.30.0","publishedAt":"2025-01-24T19:11:42Z","kind":"first-seen","detail":"Already present at v1.30.0, the oldest release tracked here (experimental)."},{"version":"1.31.0","publishedAt":"2025-03-11T00:53:13Z","kind":"stability-changed","detail":"Stability label respelled from experimental to development.","severity":"informational"}],"replaces":[]}