Skip to content

Commit 6d58085

Browse files
trentmeyalkoren
andauthored
Update the Lambda metadata fields that cannot be collected until first invocation (#592)
Co-authored-by: eyalkoren <41850454+eyalkoren@users.noreply.github.com>
1 parent 255b7e4 commit 6d58085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/agents/tracing-instrumentation-aws-lambda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Note that `faas.*` fields *are not* nested under the context property [in the in
3131
Automatically capturing cloud metadata doesn't work reliably from a Lambda environment. Moreover, retrieving cloud metadata through an additional HTTP request may slowdown the lambda function / increase cold start behaviour. Therefore, the generic cloud metadata fetching should be disabled when the agent is running in a lambda context (for instance through checking for the existence of the `AWS_LAMBDA_FUNCTION_NAME` environment variable).
3232
Where possible, metadata should be overwritten at Lambda runtime startup corresponding to the field specifications in this spec.
3333

34-
Some metadata fields are not available at startup (e.g. `invokedFunctionArn` which is needed for `service.id` and `cloud.region`). Therefore, retrieval of metadata fields in a lambda context needs to be delayed until the first execution of the lambda function, so that information provided in the `context` object can used to set metadata fields properly.
34+
Some metadata fields are not available at startup (e.g. `invokedFunctionArn` which is needed for `cloud.account.id` and `faas.id`). Therefore, retrieval of metadata fields in a lambda context needs to be delayed until the first execution of the lambda function, so that information provided in the `context` object can used to set metadata fields properly.
3535

3636
The following metadata fields are relevant for lambda functions:
3737

0 commit comments

Comments
 (0)