logo
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:

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