Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const AWSXRay = require('aws-xray-sdk');
const AWS = AWSXRay.captureAWS(require('aws-sdk'));
AWS.config.update({region: process.env.DEFAULT_AWS_REGION || 'us-west-2'});
AWSXRay.captureHTTPsGlobal(require('https'));
const Wreck = require('@hapi/wreck');
Wreck.get('https://amazon.com/', {})
.then((res) => {
console.log('res', !!res);
})
.catch((err) => {
console.log(err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment