Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
makeInstances() {
const instances = { $lambda: new AWS.Lambda() };
AWSXRay.captureAWSClient(instances.$lambda);
return instances;
}
};
Object.values(instances).forEach(instance => {
if (isAwsService(instance)) {
AWSXRay.captureAWSClient(instance);
}
});
};