Error Reporting in AWS Lambda

@jakul

I discovered two things:

  1. When using the raven lib, you don’t pass the exception into captureException(). Maybe you know this, but i’m relatively new to python dev

  2. Lambda shuts down as soon as the main handler exits. By default, the lib uses a threaded spool for the exceptions, so you’ll have to change the default Transport - to HTTPTransport. Here’s what my bootstrapping looks like:

sentry = Client(dsn=Env.sentry_dsn, transport=HTTPTransport)