I discovered two things:
-
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 -
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)