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)
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
Release history Release notifications | RSS feed
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)
File details
Details for the file airbrake-flask-0.0.2.tar.gz
.
File metadata
- Download URL: airbrake-flask-0.0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d299acd952a626a1722fc7f94363dc229b90ad0b8c3792c08e3b0517f81603f |
|
MD5 | ee34534c10d9bdaadc39223f5eaea596 |
|
BLAKE2b-256 | b9455f4ed1a584a56c15365a4f726ecadb09edcd8315bc3a7a1876d5b3e0008a |