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

@instana/aws-lambda

Package Overview
Dependencies
Maintainers
3
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 1.76.0 to 1.77.0

src/.process_result.js.swp

8

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

@@ -61,4 +61,4 @@ "author": {

"dependencies": {
"@instana/core": "^1.76.0",
"@instana/serverless": "^1.76.0"
"@instana/core": "^1.77.0",
"@instana/serverless": "^1.77.0"
},

@@ -75,3 +75,3 @@ "devDependencies": {

},
"gitHead": "24579c129b79a1b9cf11137f20b68d5a7bee6a79"
"gitHead": "8f685798cc6c1726be67a593e0e1f5dc36d16a1a"
}

@@ -9,2 +9,3 @@ 'use strict';

const triggers = require('./triggers');
const processResult = require('./process_result');

@@ -170,20 +171,5 @@ const { tracing } = instanaCore;

}
// capture HTTP errors
if (result && typeof result === 'object' && result.statusCode) {
if (typeof result.statusCode === 'number') {
entrySpan.data.http = entrySpan.data.http || {};
entrySpan.data.http.status = result.statusCode;
if (result.statusCode >= 500) {
entrySpan.ec = entrySpan.ec ? entrySpan.ec + 1 : 1;
entrySpan.data.lambda.error = entrySpan.data.lambda.error || `HTTP status ${result.statusCode}`;
}
} else if (typeof result.statusCode === 'string' && /^\d\d\d$/.test(result.statusCode)) {
entrySpan.data.http = entrySpan.data.http || {};
entrySpan.data.http.status = parseInt(result.statusCode, 10);
if (entrySpan.data.http.status >= 500) {
entrySpan.ec = entrySpan.ec ? entrySpan.ec + 1 : 1;
entrySpan.data.lambda.error = entrySpan.data.lambda.error || `HTTP status ${result.statusCode}`;
}
}
}
processResult(result, entrySpan);
entrySpan.error = entrySpan.ec > 0;

@@ -190,0 +176,0 @@ entrySpan.d = Date.now() - entrySpan.ts;

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