Skip to main content

Easy integration with sentry for zappa apps

Project description

# zappa-sentry

Sentry handler configuration with defaults for zappa lambdas.

# Installation

`pip install zappa_sentry`

# Zappa configuration

Setup your sentry DSN as the value of environment variable `SENTRY_DSN`, either on the `zappa_setting.json` file or in any of the other methods on

Then you can setup the `zappa_sentry.unhandled_exceptions` handler.

"dev": {
"environment_variables": {
"SENTRY_DSN": "https://*key*:*pass**project*",
"exception_handler": "zappa_sentry.unhandled_exceptions",

And that's all. Deploy your zappa function and you should see any errors appearing on sentry.

If you want the exception handler to capture the exception and capture it, just replace `zappa_sentry.unhandled_exceptions` by `zappa_sentry.capture_exceptions`. This version won't let the exceptions propagate.

# Adding extra information

Just add it to the scope as normal for the new sentry-sdk:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zappa-sentry, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size zappa_sentry-0.4.0-py2.py3-none-any.whl (4.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size zappa_sentry-0.4.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page