-
-
Save richardgrantserverless/3616846efc381eac5e1f051ee35c533b 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
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