Skip to content

Commit bce4207

Browse files
committed
fix: fix XRay support
1 parent 05d8829 commit bce4207

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/warmer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ const uninstrumentedLambdaClient = new LambdaClient({
139139
});
140140
141141
${tracing
142-
? 'const lambdaClient = AWSXRay.captureAWSv3Client(uninstrumentedLambdaClient);'
142+
? `import * as AWSXRay from 'aws-xray-sdk';
143+
const lambdaClient = AWSXRay.captureAWSv3Client(uninstrumentedLambdaClient);`
143144
: 'const lambdaClient = uninstrumentedLambdaClient;'}
144145
145146
const functions = ${JSON.stringify(functions, null, ' ')};

0 commit comments

Comments
 (0)