diff --git a/src/warmer.js b/src/warmer.js index 97733b1..6918d48 100644 --- a/src/warmer.js +++ b/src/warmer.js @@ -139,7 +139,8 @@ const uninstrumentedLambdaClient = new LambdaClient({ }); ${tracing - ? 'const lambdaClient = AWSXRay.captureAWSv3Client(uninstrumentedLambdaClient);' + ? `import * as AWSXRay from 'aws-xray-sdk'; +const lambdaClient = AWSXRay.captureAWSv3Client(uninstrumentedLambdaClient);` : 'const lambdaClient = uninstrumentedLambdaClient;'} const functions = ${JSON.stringify(functions, null, ' ')};