Sentry Lambda Extension Flushes data to Sentry out of the main lambda context The majority of this was taken from this excellent blog post: https://dev.to/slsbytheodo/power-up-your-serverless-application-with-aws-lambda-extensions-3a31