Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional parameter to AWSServices integration #3030

Merged

Conversation

marshall-lee
Copy link
Contributor

@marshall-lee marshall-lee commented Nov 4, 2020

Initially, I thought there's no need to catch the error of require('aws-sdk/global') because this package is always available on AWS Lambda and even in the sam local emulator.

However, in some environments it could be missing. Examples of such environments is netlify dev or it could be simply a unit-test environment without any packages.

Fixes #3000.

Initially, I thought there's no need to catch the error of
`require('aws-sdk/global')` because this package is always available on
AWS Lambda and even in the `sam local` emulator.

However, in some environments it could be missing. Examples of such
environments is netlify dev or it could be simply a unit-test environment
without any packages.

Fixes getsentry#3000.
@HazAT HazAT merged commit 0a2bfdb into getsentry:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sentry.AWSLambda.init doesn't work with Netlify dev
3 participants