Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim
Created July 30, 2020 13:27
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/d32f4e7cf5d713f746a1cee3a9db7e92 to your computer and use it in GitHub Desktop.
Save vdeturckheim/d32f4e7cf5d713f746a1cee3a9db7e92 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('wreck');
Wreck.get('https://amazon.com/', {}, (err, res) => {
console.log('err', !!err);
console.log('res', !!res);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment