datadog-lambda-js
Advanced tools
Comparing version 7.104.0 to 7.105.0
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
6847
22