Skip to content

Send errors to Honeybadger from AWS Lambda functions written in Python

Notifications You must be signed in to change notification settings

serch/honeybadger-python-aws-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

honeybadger-python-aws-lambda

Send errors to Honeybadger from AWS Lambda functions written in Python

Honeybadger is an awesome error tracking system that supports multiple programming languages out of the box, python being one of them. They offer a python package to easily report errors, uncaught exceptions and send manual notifications. However if your lambda function is small enough so that you'd rather avoid creating a deployment package you can simply copy and paste the Honeybadger class in lambda.py and start reporting.

In lamba.py you can find an example of a Lambda function triggered by AWS API Gateway that reports a manual notification and an exception. It uses the event and context objects provided by AWS Lambda to populate the honeybadger's context. The environmente is set to lambda.

However all this can easily be changed, just look at the functions context_from_lambda and server_payload.

Happy reporting!

About

Send errors to Honeybadger from AWS Lambda functions written in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages