Lambda exception handler through Sentry
npm install @beforeyoubid/exception-handlerThis npm module can be used to wrap over the existing lambda function. When it's enabled, it will capture all exceptions and report to Sentry.
```
yarn add @beforeyoubid/exception-handler
We follow 12-factors and we can enable this using environment variables.
``
SENTRY_DSN=https://xxxx@yyyy.ingest.sentry.io/zzzz
`
import { asyncSentryHandler } from '@beforeyoubid/exception-handler';
export default asyncSentryHandler(serverless(app));
`
`
import { callbackSentryHandler } from '@beforeyoubid/exception-handler';
export default callbackSentryHandler(serverless(app));
``