Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 6, 2022 15:30
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 richardgrantserverless/3616846efc381eac5e1f051ee35c533b to your computer and use it in GitHub Desktop.
Save richardgrantserverless/3616846efc381eac5e1f051ee35c533b to your computer and use it in GitHub Desktop.
import aws from "aws-sdk";
import xray from "aws-xray-sdk";
// Do not enable tracing for 'invoke local'
const awsWrapped = process.env.IS_LOCAL ? aws : xray.captureAWS(aws);
export default awsWrapped;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment