@instana/aws-lambda
Advanced tools
+11
-0
@@ -6,2 +6,13 @@ # Change Log | ||
| # [5.2.0](https://github.com/instana/nodejs/compare/v5.1.0...v5.2.0) (2026-01-19) | ||
| ### Bug Fixes | ||
| * **aws-lambda:** improved ssm and coldstarts ([#2199](https://github.com/instana/nodejs/issues/2199)) ([a1e5208](https://github.com/instana/nodejs/commit/a1e5208d8aea50f52a235a75a75672d94a19192b)) | ||
| # [5.1.0](https://github.com/instana/nodejs/compare/v5.0.2...v5.1.0) (2026-01-13) | ||
@@ -8,0 +19,0 @@ |
+4
-4
| { | ||
| "name": "@instana/aws-lambda", | ||
| "version": "5.1.0", | ||
| "version": "5.2.0", | ||
| "description": "Instana tracing and monitoring for Node.js based AWS Lambdas", | ||
@@ -72,7 +72,7 @@ "author": { | ||
| "dependencies": { | ||
| "@instana/core": "5.1.0", | ||
| "@instana/serverless": "5.1.0", | ||
| "@instana/core": "5.2.0", | ||
| "@instana/serverless": "5.2.0", | ||
| "semver": "^7.7.3" | ||
| }, | ||
| "gitHead": "41872ac4074d33d0c66970a672baa4363c99a0a0" | ||
| "gitHead": "8bbcaf378404d6a521286fe0e5c987e967d6fc00" | ||
| } |
+9
-2
@@ -14,2 +14,3 @@ /* | ||
| let logger; | ||
| let coldStart; | ||
@@ -37,4 +38,5 @@ module.exports.reset = () => { | ||
| module.exports.init = config => { | ||
| module.exports.init = (config, _coldStart) => { | ||
| logger = config.logger; | ||
| coldStart = _coldStart; | ||
@@ -111,6 +113,11 @@ // CASE: INSTANA_SSM_PARAM_NAME is not set, skip | ||
| const endInMs = Date.now(); | ||
| const awsTimeoutInMs = process.env.INSTANA_AWS_SSM_TIMEOUT_IN_MS | ||
| let awsTimeoutInMs = process.env.INSTANA_AWS_SSM_TIMEOUT_IN_MS | ||
| ? Number(process.env.INSTANA_AWS_SSM_TIMEOUT_IN_MS) | ||
| : 1000; | ||
| // CASE: cold start will freeze the handler for a while and we have to allow more time to get the SSM response | ||
| if (coldStart) { | ||
| awsTimeoutInMs += 2000; | ||
| } | ||
| // CASE: The time between SSM initialization and waitAndGetInstanaKey is too long to wait for the AWS response. | ||
@@ -117,0 +124,0 @@ // See init fn - we fetch the key as early as possible. |
+1
-1
@@ -316,3 +316,3 @@ /* | ||
| // initialized after the core. | ||
| ssm.init(config); | ||
| ssm.init(config, coldStart); | ||
@@ -319,0 +319,0 @@ spanBuffer.setIsFaaS(true); |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 11 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
101623
0.53%1451
0.42%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated