Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim
Created July 30, 2020 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdeturckheim/5caee108fabd66237aaef58bc7d7a9b8 to your computer and use it in GitHub Desktop.
Save vdeturckheim/5caee108fabd66237aaef58bc7d7a9b8 to your computer and use it in GitHub Desktop.
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