Skip to main content

Airbrake client for Python Flask

Project description

Installation Instruction:

pip install airbrake-flask

Code Example:

from flask import Flask, request
from airbrake import AirbrakeErrorHandler
import gevent

@app.errorhandler(500)
def internal_error(error):
if app.config['EXCEPTION_LOGGING']:
handler = AirbrakeErrorHandler(api_key=app.config['AIRBREAK_API_KEY'],
env_name=ENV,
request_url=request.url,
request_path=request.path,
request_method=request.method,
request_args=request.args,
request_headers=request.headers)
gevent.spawn(handler.emit, error)

Project details


Download files

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

Source Distribution

airbrake-flask-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file airbrake-flask-0.0.2.tar.gz.

File metadata

File hashes

Hashes for airbrake-flask-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9d299acd952a626a1722fc7f94363dc229b90ad0b8c3792c08e3b0517f81603f
MD5 ee34534c10d9bdaadc39223f5eaea596
BLAKE2b-256 b9455f4ed1a584a56c15365a4f726ecadb09edcd8315bc3a7a1876d5b3e0008a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page