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

serverless-plugin-datadog

Package Overview
Dependencies
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-plugin-datadog - npm Package Compare versions

Comparing version 2.9.0 to 2.10.0

2

dist/package.json
{
"name": "serverless-plugin-datadog",
"version": "2.9.0",
"version": "2.10.0",
"description": "Serverless plugin to automatically instrument python and node functions with datadog tracing",

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

@@ -14,2 +14,3 @@ import Service from "serverless/classes/Service";

injectLogContext: boolean;
exclude: string[];
}

@@ -16,0 +17,0 @@ export declare const defaultConfiguration: Configuration;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.hasWebpackPlugin = exports.forceExcludeDepsFromWebpack = exports.getConfig = exports.setEnvConfiguration = exports.defaultConfiguration = void 0;
const apiKeyEnvVar = "DD_API_KEY";

@@ -19,2 +18,3 @@ const apiKeyKMSEnvVar = "DD_KMS_API_KEY";

const logInjectionEnvVar = "DD_LOGS_INJECTION";
const excludeEnvVar = "DD_EXCLUDED_FUNCTIONS";
exports.defaultConfiguration = {

@@ -29,2 +29,3 @@ addLayers: true,

injectLogContext: true,
exclude: [],
};

@@ -58,2 +59,5 @@ function setEnvConfiguration(config, service) {

}
if (config.exclude !== undefined && environment[excludeEnvVar] === undefined) {
environment[excludeEnvVar] = config.exclude;
}
}

@@ -60,0 +64,0 @@ exports.setEnvConfiguration = setEnvConfiguration;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.describeSubscriptionFilters = exports.canSubscribeLogGroup = exports.addCloudWatchForwarderSubscriptions = void 0;
const logGroupKey = "AWS::Logs::LogGroup";

@@ -15,0 +14,0 @@ const logGroupSubscriptionKey = "AWS::Logs::SubscriptionFilter";

@@ -9,21 +9,2 @@ "use strict";

*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -38,2 +19,9 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -92,3 +80,3 @@ const layers = __importStar(require("./layers.json"));

const defaultRuntime = this.serverless.service.provider.runtime;
const handlers = layer_1.findHandlers(this.serverless.service, defaultRuntime);
const handlers = layer_1.findHandlers(this.serverless.service, config.exclude, defaultRuntime);
if (config.addLayers) {

@@ -135,3 +123,3 @@ this.serverless.cli.log("Adding Lambda Layers to functions");

const defaultRuntime = this.serverless.service.provider.runtime;
const handlers = layer_1.findHandlers(this.serverless.service, defaultRuntime);
const handlers = layer_1.findHandlers(this.serverless.service, config.exclude, defaultRuntime);
wrapper_1.redirectHandlers(handlers, config.addLayers);

@@ -138,0 +126,0 @@ output_1.addOutputLinks(this.serverless, config.site);

@@ -24,4 +24,4 @@ import { FunctionDefinition } from "serverless";

};
export declare function findHandlers(service: Service, defaultRuntime?: string): FunctionInfo[];
export declare function findHandlers(service: Service, exclude: string[], defaultRuntime?: string): FunctionInfo[];
export declare function applyLayers(region: string, handlers: FunctionInfo[], layers: LayerJSON): void;
//# sourceMappingURL=layer.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyLayers = exports.findHandlers = exports.runtimeLookup = exports.RuntimeType = void 0;
var RuntimeType;

@@ -19,3 +18,3 @@ (function (RuntimeType) {

};
function findHandlers(service, defaultRuntime) {
function findHandlers(service, exclude, defaultRuntime) {
const funcs = service.functions;

@@ -33,3 +32,4 @@ return Object.entries(funcs)

})
.filter((result) => result !== undefined);
.filter((result) => result !== undefined)
.filter((result) => exclude === undefined || (exclude !== undefined && !exclude.includes(result.name)));
}

@@ -36,0 +36,0 @@ exports.findHandlers = findHandlers;

{
"regions": {
"us-gov-west-1": {
"nodejs10.x": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Node10-x:40",
"nodejs12.x": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Node12-x:40",
"python2.7": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python27:24",
"python3.6": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python36:24",
"python3.7": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python37:24",
"python3.8": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python38:24"
"nodejs10.x": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Node10-x:41",
"nodejs12.x": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python27:26",
"python3.6": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python36:26",
"python3.7": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python37:26",
"python3.8": "arn:aws-us-gov:lambda:us-gov-west-1:002406178527:layer:Datadog-Python38:26"
},
"us-gov-east-1": {
"nodejs10.x": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Node10-x:40",
"nodejs12.x": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Node12-x:40",
"python2.7": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python27:24",
"python3.6": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python36:24",
"python3.7": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python37:24",
"python3.8": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python38:24"
"nodejs10.x": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Node10-x:41",
"nodejs12.x": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python27:26",
"python3.6": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python36:26",
"python3.7": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python37:26",
"python3.8": "arn:aws-us-gov:lambda:us-gov-east-1:002406178527:layer:Datadog-Python38:26"
}
}
}

@@ -6,6 +6,6 @@ {

"nodejs12.x": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:af-south-1:464622532012:layer:Datadog-Python38:26"
},

@@ -16,6 +16,6 @@ "eu-north-1": {

"nodejs12.x": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python38:26"
},

@@ -26,6 +26,6 @@ "ap-south-1": {

"nodejs12.x": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python38:26"
},

@@ -36,6 +36,6 @@ "eu-west-3": {

"nodejs12.x": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python38:26"
},

@@ -46,6 +46,6 @@ "eu-west-2": {

"nodejs12.x": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python38:26"
},

@@ -55,6 +55,6 @@ "eu-south-1": {

"nodejs12.x": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:eu-south-1:464622532012:layer:Datadog-Python38:26"
},

@@ -65,6 +65,6 @@ "eu-west-1": {

"nodejs12.x": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python38:26"
},

@@ -75,6 +75,6 @@ "ap-northeast-2": {

"nodejs12.x": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python38:26"
},

@@ -84,6 +84,6 @@ "me-south-1": {

"nodejs12.x": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:me-south-1:464622532012:layer:Datadog-Python38:26"
},

@@ -94,6 +94,6 @@ "ap-northeast-1": {

"nodejs12.x": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python38:26"
},

@@ -104,6 +104,6 @@ "sa-east-1": {

"nodejs12.x": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python38:26"
},

@@ -114,6 +114,6 @@ "ca-central-1": {

"nodejs12.x": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python38:26"
},

@@ -123,6 +123,6 @@ "ap-east-1": {

"nodejs12.x": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python38:26"
},

@@ -133,6 +133,6 @@ "ap-southeast-1": {

"nodejs12.x": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python38:26"
},

@@ -143,6 +143,6 @@ "ap-southeast-2": {

"nodejs12.x": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python38:26"
},

@@ -153,6 +153,6 @@ "eu-central-1": {

"nodejs12.x": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python38:26"
},

@@ -163,6 +163,6 @@ "us-east-1": {

"nodejs12.x": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python38:26"
},

@@ -173,6 +173,6 @@ "us-east-2": {

"nodejs12.x": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python38:26"
},

@@ -183,6 +183,6 @@ "us-west-1": {

"nodejs12.x": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python38:26"
},

@@ -193,8 +193,8 @@ "us-west-2": {

"nodejs12.x": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Node12-x:41",
"python2.7": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python27:25",
"python3.6": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python36:25",
"python3.7": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python37:25",
"python3.8": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python38:25"
"python2.7": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python27:26",
"python3.6": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python36:26",
"python3.7": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python37:26",
"python3.8": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python38:26"
}
}
}

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.printOutputs = exports.addOutputLinks = void 0;
const yellowFont = "\x1b[33m";

@@ -15,0 +14,0 @@ const underlineFont = "\x1b[4m";

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.enableTracing = exports.TracingMode = void 0;
const ddTraceEnabledEnvVar = "DD_TRACE_ENABLED";

@@ -13,0 +12,0 @@ const ddMergeXrayTracesEnvVar = "DD_MERGE_XRAY_TRACES";

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.redirectHandlers = exports.jsHandler = exports.jsHandlerWithLayers = exports.pythonHandler = exports.datadogHandlerEnvVar = void 0;
const layer_1 = require("./layer");

@@ -13,0 +12,0 @@ exports.datadogHandlerEnvVar = "DD_LAMBDA_HANDLER";

{
"name": "serverless-plugin-datadog",
"version": "2.9.0",
"version": "2.10.0",
"description": "Serverless plugin to automatically instrument python and node functions with datadog tracing",

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

@@ -38,2 +38,3 @@ # Datadog Serverless Plugin

| `injectLogContext` | When set, the lambda layer will automatically patch console.log with Datadog's tracing ids. Defaults to `true`. |
| `exclude` | When set, this plugin will ignore all specified functions. Use this parameter if you have any functions that should not include Datadog functionality. Defaults to `[]`. |

@@ -55,2 +56,4 @@ To use any of these parameters, add a `custom` > `datadog` section to your `serverless.yml` similar to this example:

injectLogContext: true
exclude:
- dd-excluded-function
```

@@ -57,0 +60,0 @@

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

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