Skip to content

Commit

Permalink
fix: fix XRay support
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Oct 2, 2024
1 parent 05d8829 commit bce4207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/warmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, ' ')};
Expand Down

0 comments on commit bce4207

Please sign in to comment.