Skip to content

Commit fe8a4fb

Browse files
committed
docs: added comment for "shouldUseLambdaExtension"
- extracted from #1315
1 parent 749021c commit fe8a4fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/aws-lambda/src/wrapper.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ function getRemainingTimeInMillis(context) {
343343
}
344344
}
345345

346+
// NOTE: This function only "guesses" whether the Lambda extension should be used or not.
347+
// TODO: Figure out how we can reliably determine whether the Lambda extension should be
348+
// used or not e.g. by checking the lambda handler name if that is possible.
346349
function shouldUseLambdaExtension() {
347350
if (process.env.INSTANA_DISABLE_LAMBDA_EXTENSION) {
348351
logger.info('INSTANA_DISABLE_LAMBDA_EXTENSION is set, not using the Lambda extension.');

0 commit comments

Comments
 (0)