Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
garysassano committed Jan 21, 2025
1 parent 90ec5c1 commit 77c19b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ export class AwsLambdaDetectorSync implements DetectorSync {
return Resource.empty();
}

// These environment variables are guaranteed to be present in AWS Lambda
// These environment variables are guaranteed to be present in Lambda environment
// https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
const region = process.env.AWS_REGION;
const functionName = process.env.AWS_LAMBDA_FUNCTION_NAME;
const functionVersion = process.env.AWS_LAMBDA_FUNCTION_VERSION;
const memorySize = process.env.AWS_LAMBDA_FUNCTION_MEMORY_SIZE;

// These environment variables are not available in Lambda SnapStart
// These environment variables are not available in Lambda SnapStart functions
const logGroupName = process.env.AWS_LAMBDA_LOG_GROUP_NAME;
const logStreamName = process.env.AWS_LAMBDA_LOG_STREAM_NAME;

Expand Down

0 comments on commit 77c19b4

Please sign in to comment.