Ross Coundon
04/06/2021, 2:02 PMRoss Coundon
04/06/2021, 2:02 PMJay
Ross Coundon
04/06/2021, 2:24 PMFrank
Frank
const datadog = new Datadog(this, "Datadog", ...);
datadog.addLambdaFunctions([a list of lambdas]);
The Datadog CDK construct takes in a list of lambda functions and installs the Datadog Lambda Library by attaching the Lambda Layers for Node.js and Python to your functions. It redirects to a replacement handler that initializes the Lambda Library without any required code changes.
Frank
wrappers
like:
new sst.Function(this, "MyFunction", {
handler: "src/lambda.main",
wrappers: [ epsagonWrapper ]
})
Where easagonWrapper
can just be user defined wrapper functionRoss Coundon
04/06/2021, 6:00 PMPål Brattberg
04/06/2021, 6:25 PMFrank
Pål Brattberg
04/06/2021, 6:37 PMFrank
justindra
04/08/2021, 9:04 PMFrank
Frank