Update:
Lambda shuts down before the default Transport (ThreadedHTTPTransport) can fire off. You may find more success in the synchronous Transport (HTTPTransport).
I’m leveraging the Raven package for Python 2.7 in a small app running in AWS Lambda. I’m running into an issue transporting the events up to Sentry when an exception is encountered.
When the app in Lambda raises an exception, AWS will return the stacktrace and terminate the instance. I believe this is the source of the issue, as the events are still pending HTTP transport.
I’m not an expert in Python, but I believe the package is spooling the messages. According to the Client definition, there are several transports available. According to the transport docs, the HTTPTransport should block report the event during thread execution. This is not occurring for me.
I’ve bootstrapped Raven as a log handler as well as directly invoking captureException to no avail. Any guidance is appreciated.