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.
On some cloud providers, it may not be possible to determine the full ID at startup,
so consider setting faas.id
as a span attribute instead.
The exact value to use for faas.id
depends on the cloud provider:
- 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.
Examples
arn:aws:lambda:us-west-2:123456789012:function:my-function