Aram
08/17/2021, 11:59 AMERROR Error [TypeError]: (intermediate value)(intermediate value)(intermediate value).toLowerCase is not a function
at TraceListener.onWrap (/code/messaging/node_modules/datadog-lambda-js/src/trace/listener.ts:117:67)
datadog-lambda-js
needs a wrapper around the function's handler and it seems like it's failing because sst is re-wrapping the handler.
Is that assumption correct? If so, is there a way to have dd wrapper around sst wrapper?
Thanks!thdxr
08/17/2021, 12:04 PMAram
08/17/2021, 12:45 PMimport { datadog } from 'datadog-lambda-js';
async function myFunction() {
...
}
export const handler = datadog(myFunction);
thdxr
08/17/2021, 12:46 PMdatadog-lambda-js
I'm using thier CDK constructthdxr
08/17/2021, 12:47 PMconst datadog = new Datadog(this, "Datadog", {
nodeLayerVersion: 59,
extensionLayerVersion: 9,
apiKey: "...",
})
datadog.addLambdaFunctions([router])
thdxr
08/17/2021, 12:47 PMAram
08/17/2021, 12:47 PMAram
08/17/2021, 12:48 PMthdxr
08/17/2021, 12:49 PMAram
08/20/2021, 12:12 PMthdxr
08/20/2021, 12:13 PMthdxr
08/20/2021, 12:13 PM