Skip to content

Commit

Permalink
fix(lambda): increase socket and HTTP timeout for Lambda extension
Browse files Browse the repository at this point in the history
It turns out that 100 ms is sometimes not enough, although
communication to the Lambda extension happens on localhost. If the
extension is up and runnig but communication between the Node.js
in-process collector and the extension fails at some point, the
Node.js in-process collector will stop attempting to talk to the
extension. Consequently, the extension will wait to receive the Lambda
entry span, which will never happen, causing the Lambda invocation to
run into a timeout.
  • Loading branch information
basti1302 committed Aug 8, 2022
1 parent 1f985d6 commit 7a07a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/serverless/src/backend_connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let useLambdaExtension = false;

const timeoutEnvVar = 'INSTANA_TIMEOUT';
let defaultTimeout = 500;
const layerExtensionTimeout = 100;
const layerExtensionTimeout = 300;
let backendTimeout = defaultTimeout;

const proxyEnvVar = 'INSTANA_ENDPOINT_PROXY';
Expand Down

0 comments on commit 7a07a8b

Please sign in to comment.