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

datadog-lambda-js

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datadog-lambda-js - npm Package Compare versions

Comparing version 4.62.0 to 4.63.0

dist/utils/tag-object.d.ts

2

dist/constants.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.datadogLambdaVersion = void 0;
exports.datadogLambdaVersion = "4.62.0";
exports.datadogLambdaVersion = "4.63.0";
//# sourceMappingURL=constants.js.map

@@ -8,2 +8,3 @@ import { Handler } from "aws-lambda";

export declare const apiKeyKMSEnvVar = "DD_KMS_API_KEY";
export declare const captureLambdaPayloadEnvVar = "DD_CAPTURE_LAMBDA_PAYLOAD";
export declare const siteURLEnvVar = "DD_SITE";

@@ -57,3 +58,3 @@ export declare const logLevelEnvVar = "DD_LOG_LEVEL";

* @param value The value of the metric
* @param metricTime The timesamp associated with this metric data point.
* @param metricTime The timestamp associated with this metric data point.
* @param tags The tags associated with the metric. Should be of the format "tag:value".

@@ -60,0 +61,0 @@ */

@@ -71,3 +71,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getEnvValue = exports.getTraceHeaders = exports.sendDistributionMetric = exports.sendDistributionMetricWithDate = exports.datadog = exports.defaultConfig = exports.defaultSiteURL = exports.traceExtractorEnvVar = exports.mergeXrayTracesEnvVar = exports.lambdaTaskRootEnvVar = exports.datadogHandlerEnvVar = exports.enhancedMetricsEnvVar = exports.logInjectionEnvVar = exports.logForwardingEnvVar = exports.logLevelEnvVar = exports.siteURLEnvVar = exports.apiKeyKMSEnvVar = exports.apiKeyEnvVar = void 0;
exports.getEnvValue = exports.getTraceHeaders = exports.sendDistributionMetric = exports.sendDistributionMetricWithDate = exports.datadog = exports.defaultConfig = exports.defaultSiteURL = exports.traceExtractorEnvVar = exports.mergeXrayTracesEnvVar = exports.lambdaTaskRootEnvVar = exports.datadogHandlerEnvVar = exports.enhancedMetricsEnvVar = exports.logInjectionEnvVar = exports.logForwardingEnvVar = exports.logLevelEnvVar = exports.siteURLEnvVar = exports.captureLambdaPayloadEnvVar = exports.apiKeyKMSEnvVar = exports.apiKeyEnvVar = void 0;
var metrics_1 = require("./metrics");

@@ -79,2 +79,3 @@ var trace_1 = require("./trace");

exports.apiKeyKMSEnvVar = "DD_KMS_API_KEY";
exports.captureLambdaPayloadEnvVar = "DD_CAPTURE_LAMBDA_PAYLOAD";
exports.siteURLEnvVar = "DD_SITE";

@@ -94,2 +95,3 @@ exports.logLevelEnvVar = "DD_LOG_LEVEL";

autoPatchHTTP: true,
captureLambdaPayload: false,
debugLogging: false,

@@ -182,2 +184,6 @@ enhancedMetrics: true,

if (traceListener.currentSpan) {
if (finalConfig.captureLambdaPayload) {
utils_1.tagObject(traceListener.currentSpan, "function.request", localEvent);
utils_1.tagObject(traceListener.currentSpan, "function.response", localResult);
}
traceListener.currentSpan.setTag("http.status_code", statusCode);

@@ -234,3 +240,3 @@ }

* @param value The value of the metric
* @param metricTime The timesamp associated with this metric data point.
* @param metricTime The timestamp associated with this metric data point.
* @param tags The tags associated with the metric. Should be of the format "tag:value".

@@ -319,2 +325,6 @@ */

}
if (userConfig === undefined || userConfig.captureLambdaPayload === undefined) {
var result = getEnvValue(exports.captureLambdaPayloadEnvVar, "false").toLocaleLowerCase();
config.captureLambdaPayload = result === "true";
}
return config;

@@ -321,0 +331,0 @@ }

@@ -192,2 +192,3 @@ "use strict";

if (this.currentProcessor !== undefined) {
// tslint:disable-next-line: no-floating-promises
this.currentProcessor.then(function (processor) {

@@ -194,0 +195,0 @@ processor.addMetric(dist);

@@ -11,2 +11,6 @@ import { Context } from "aws-lambda";

/**
* Whether to capture the lambda payload and response in Datadog.
*/
captureLambdaPayload: boolean;
/**
* Whether to automatically patch console.log with Datadog's tracing ids.

@@ -13,0 +17,0 @@ */

@@ -6,2 +6,3 @@ export { didFunctionColdStart, getColdStartTag, setColdStart } from "./cold-start";

export { get, post } from "./request";
export { tagObject } from "./tag-object";
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.post = exports.get = exports.LogLevel = exports.setLogger = exports.setLogLevel = exports.logDebug = exports.logError = exports.Timer = exports.promisifiedHandler = exports.wrap = exports.setColdStart = exports.getColdStartTag = exports.didFunctionColdStart = void 0;
exports.tagObject = exports.post = exports.get = exports.LogLevel = exports.setLogger = exports.setLogLevel = exports.logDebug = exports.logError = exports.Timer = exports.promisifiedHandler = exports.wrap = exports.setColdStart = exports.getColdStartTag = exports.didFunctionColdStart = void 0;
var cold_start_1 = require("./cold-start");

@@ -22,2 +22,4 @@ Object.defineProperty(exports, "didFunctionColdStart", { enumerable: true, get: function () { return cold_start_1.didFunctionColdStart; } });

Object.defineProperty(exports, "post", { enumerable: true, get: function () { return request_1.post; } });
var tag_object_1 = require("./tag-object");
Object.defineProperty(exports, "tagObject", { enumerable: true, get: function () { return tag_object_1.tagObject; } });
//# sourceMappingURL=index.js.map
{
"name": "datadog-lambda-js",
"version": "4.62.0",
"version": "4.63.0",
"description": "Lambda client library that supports hybrid tracing in node js",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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