Constant opentelemetry_semantic_conventions::resource::FAAS_ID
source · [−]pub const FAAS_ID: Key;
Expand description
The unique ID of the single function that this runtime instance executes.
Depending on the cloud provider, use:
- 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.
On some providers, it may not be possible to determine the full ID at startup,
which is why this field cannot be made required. For example, on AWS the account ID
part of the ARN is not available without calling another AWS API
which may be deemed too slow for a short-running lambda function.
As an alternative, consider setting faas.id
as a span attribute instead.
Examples
arn:aws:lambda:us-west-2:123456789012:function:my-function