Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim

vdeturckheim/xray.js

Created Jul 30, 2020
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('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