serverless-plugin-datadog
Advanced tools
Comparing version 2.6.2 to 2.6.3
{ | ||
"name": "serverless-plugin-datadog", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Serverless plugin to automatically instrument python and node functions with datadog tracing", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -10,2 +10,3 @@ "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"; | ||
@@ -12,0 +13,0 @@ const apiKeyKMSEnvVar = "DD_KMS_API_KEY"; |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.describeSubscriptionFilters = exports.canSubscribeLogGroup = exports.addCloudWatchForwarderSubscriptions = void 0; | ||
const logGroupKey = "AWS::Logs::LogGroup"; | ||
@@ -14,0 +15,0 @@ const logGroupSubscriptionKey = "AWS::Logs::SubscriptionFilter"; |
@@ -9,2 +9,21 @@ "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) { | ||
@@ -19,9 +38,2 @@ 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 }); | ||
@@ -28,0 +40,0 @@ const layers = __importStar(require("./layers.json")); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.applyLayers = exports.findHandlers = exports.runtimeLookup = exports.RuntimeType = void 0; | ||
var RuntimeType; | ||
@@ -4,0 +5,0 @@ (function (RuntimeType) { |
@@ -5,4 +5,4 @@ { | ||
"nodejs8.10": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python27:23", | ||
@@ -15,4 +15,4 @@ "python3.6": "arn:aws:lambda:us-east-2:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -25,4 +25,4 @@ "python3.6": "arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -35,4 +35,4 @@ "python3.6": "arn:aws:lambda:us-west-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python27:23", | ||
@@ -44,4 +44,4 @@ "python3.6": "arn:aws:lambda:us-west-2:464622532012:layer:Datadog-Python36:23", | ||
"ap-east-1": { | ||
"nodejs10.x": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -54,4 +54,4 @@ "python3.6": "arn:aws:lambda:ap-east-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -64,4 +64,4 @@ "python3.6": "arn:aws:lambda:ap-south-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python27:23", | ||
@@ -74,4 +74,4 @@ "python3.6": "arn:aws:lambda:ap-northeast-2:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -84,4 +84,4 @@ "python3.6": "arn:aws:lambda:ap-southeast-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python27:23", | ||
@@ -94,4 +94,4 @@ "python3.6": "arn:aws:lambda:ap-southeast-2:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -104,4 +104,4 @@ "python3.6": "arn:aws:lambda:ap-northeast-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -114,4 +114,4 @@ "python3.6": "arn:aws:lambda:ca-central-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -124,4 +124,4 @@ "python3.6": "arn:aws:lambda:eu-north-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -134,4 +134,4 @@ "python3.6": "arn:aws:lambda:eu-central-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -144,4 +144,4 @@ "python3.6": "arn:aws:lambda:eu-west-1:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python27:23", | ||
@@ -154,4 +154,4 @@ "python3.6": "arn:aws:lambda:eu-west-2:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Node10-x:36", | ||
"nodejs12.x": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Node12-x:36", | ||
"nodejs10.x": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Node10-x:39", | ||
"nodejs12.x": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python27:23", | ||
@@ -164,4 +164,4 @@ "python3.6": "arn:aws:lambda:eu-west-3:464622532012:layer:Datadog-Python36:23", | ||
"nodejs8.10": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node8-10:18", | ||
"nodejs10.x": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node10-x:37", | ||
"nodejs12.x": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node12-x:35", | ||
"nodejs10.x": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node10-x:40", | ||
"nodejs12.x": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Node12-x:39", | ||
"python2.7": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python27:23", | ||
@@ -168,0 +168,0 @@ "python3.6": "arn:aws:lambda:sa-east-1:464622532012:layer:Datadog-Python36:23", |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.printOutputs = exports.addOutputLinks = void 0; | ||
const yellowFont = "\x1b[33m"; | ||
@@ -14,0 +15,0 @@ const underlineFont = "\x1b[4m"; |
@@ -10,2 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.enableTracing = exports.TracingMode = void 0; | ||
const ddTraceEnabledEnvVar = "DD_TRACE_ENABLED"; | ||
@@ -12,0 +13,0 @@ const ddMergeXrayTracesEnvVar = "DD_MERGE_XRAY_TRACES"; |
@@ -10,2 +10,3 @@ "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"); | ||
@@ -12,0 +13,0 @@ exports.datadogHandlerEnvVar = "DD_LAMBDA_HANDLER"; |
{ | ||
"name": "serverless-plugin-datadog", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Serverless plugin to automatically instrument python and node functions with datadog tracing", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -99,3 +99,13 @@ # Datadog Serverless Plugin | ||
### Forwarder | ||
The [Datadog Forwarder Lambda function][7] needs to be installed and subscribed to your Lambda functions' log groups. The plugin automatically creates the log subscriptions when the Forwarder's ARN is supplied via the `forwarder` option. | ||
If you run into the following error, double check the supplied Forwarder ARN is correct and ensure it is from the same region and account where your serverless application is deployed. | ||
``` | ||
An error occurred: GetaccountapiLogGroupSubscription - Could not execute the lambda function. Make sure you have given CloudWatch Logs permission to execute your function. (Service: AWSLogs; Status Code: 400; Error Code: InvalidParameterException). | ||
``` | ||
## Opening Issues | ||
@@ -125,1 +135,2 @@ | ||
[6]: https://webpack.js.org/configuration/externals/ | ||
[7]: https://docs.datadoghq.com/serverless/forwarder/ |
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
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
135
89247
36
865