Created
July 30, 2020 13:27
-
-
Save vdeturckheim/d32f4e7cf5d713f746a1cee3a9db7e92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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