datadog-lambda-js
Advanced tools
Comparing version
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.STREAM_RESPONSE = exports.HANDLER_STREAMING = exports.datadogLambdaVersion = void 0; | ||
exports.datadogLambdaVersion = "7.104.0"; | ||
exports.datadogLambdaVersion = "7.105.0"; | ||
// Response streaming functions | ||
@@ -6,0 +6,0 @@ exports.HANDLER_STREAMING = Symbol.for("aws.lambda.runtime.handler.streaming"); |
@@ -36,8 +36,12 @@ "use strict"; | ||
if (maxDepth === void 0) { maxDepth = 10; } | ||
if (depth >= maxDepth) { | ||
return currentSpan.setTag(key, redactVal(key, JSON.stringify(obj).substring(0, 5000))); | ||
} | ||
if (obj === null) { | ||
// when val is null, unlike undefined, it will be stringified into '{"key":null}' | ||
return currentSpan.setTag(key, obj); | ||
} | ||
if (depth >= maxDepth) { | ||
var strOrUndefined = JSON.stringify(obj); | ||
if (typeof strOrUndefined === "undefined") | ||
return; | ||
return currentSpan.setTag(key, redactVal(key, strOrUndefined.substring(0, 5000))); | ||
} | ||
depth += 1; | ||
@@ -44,0 +48,0 @@ if (typeof obj === "string") { |
{ | ||
"name": "datadog-lambda-js", | ||
"version": "7.104.0", | ||
"version": "7.105.0", | ||
"description": "Lambda client library that supports hybrid tracing in node js", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "github.com/DataDog/datadog-lambda-js", | ||
"repository": { | ||
"type": "git", | ||
"url": "github.com/DataDog/datadog-lambda-js" | ||
}, | ||
"author": "Datadog", | ||
@@ -9,0 +12,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
501125
0.07%6847
0.06%23
-4.17%