Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instana/aws-lambda

Package Overview
Dependencies
Maintainers
0
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instana/aws-lambda - npm Package Compare versions

Comparing version 3.15.1 to 3.15.2

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [3.15.2](https://github.com/instana/nodejs/compare/v3.15.1...v3.15.2) (2024-08-27)
### Bug Fixes
- **aws-lambda:** improved debug logs for number of spans ([c7a3c34](https://github.com/instana/nodejs/commit/c7a3c3407ea83eeac2d54419163a0b2265a94bb6))
## [3.15.1](https://github.com/instana/nodejs/compare/v3.15.0...v3.15.1) (2024-08-19)

@@ -8,0 +14,0 @@

8

package.json
{
"name": "@instana/aws-lambda",
"version": "3.15.1",
"version": "3.15.2",
"description": "Instana tracing and monitoring for Node.js based AWS Lambdas",

@@ -72,6 +72,6 @@ "author": {

"dependencies": {
"@instana/core": "3.15.1",
"@instana/serverless": "3.15.1"
"@instana/core": "3.15.2",
"@instana/serverless": "3.15.2"
},
"gitHead": "8c0ebb86506d1430ab47026d151008a4a4f469b5"
"gitHead": "654046cc3111e0ee43d4d32dfb70b76478d0d99c"
}

@@ -375,4 +375,5 @@ /*

function sendToBackend({ spans, metricsPayload, finalLambdaRequest, callback }) {
const runBackendConnector = () =>
backendConnector.sendBundle({ spans, metrics: metricsPayload }, finalLambdaRequest, callback);
const runBackendConnector = () => {
return backendConnector.sendBundle({ spans, metrics: metricsPayload }, finalLambdaRequest, callback);
};

@@ -436,7 +437,8 @@ // CASE: Customer uses process.env.INSTANA_AGENT_KEY

// We want that all upcoming spans are send immediately to the BE.
// Span collection happens all the time and they are buffered via spanBuffer.
// The spanBuffer will only send out the spans early if the payload becomes too big.
// When the Lambda handler finishes we trigger `sendBundle`.
// Span collection happens all the time, but for AWS Lambda sending spans early via spanBuffer
// is disabled because we cannot use `setTimeout` on AWS Lambda.
// When the Lambda handler finishes we send all spans via `sendBundle`.
// If there is any span collected afterwards (async operations), we send them out
// directly and that's why we set `setTransmitImmediate` to true.
// We need to rework the default behavior via https://jsw.ibm.com/browse/INSTA-13498
spanBuffer.setTransmitImmediate(true);

@@ -443,0 +445,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc