Created
July 30, 2020 13:29
-
-
Save vdeturckheim/5caee108fabd66237aaef58bc7d7a9b8 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('@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