Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

airbrake-flask - Airbrake client for Python Flask

Project description

airbrake-flask is a fast library that use the amazing requests library to send
error, exception messages to You can use this library with the
amazing gevent library to send your request asynchronously.

Example Usage with gevent
from flask import Flask, request, got_request_exception
from airbrake.airbrake import AirbrakeErrorHandler
import gevent
import sys

app = Flask(__name__)
ENV = ('ENV' in os.environ and os.environ['ENV']) or 'prod'

def log_exception(error):
handler = AirbrakeErrorHandler(api_key="PUT_YOUR_AIRBRAKE_KEY_HERE",
env_name=ENV, request=request)
gevent.spawn(handler.emit, error, sys.exc_info())

got_request_exception.connect(log_exception, app)

This library is hosted on Github and you can contribute there:

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 airbrake-flask, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size airbrake-flask-1.0.7.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page