All Projects → airbrake → airbrake-django

airbrake / airbrake-django

Licence: BSD-3-Clause license
A Django project for Airbrake

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to airbrake-django

Errbit
The open source error catcher that's Airbrake API compliant
Stars: ✭ 4,172 (+14286.21%)
Mutual labels:  crash-reporting, error-monitoring, airbrake
Bugsnag Python
Official bugsnag error monitoring and error reporting for django, flask, tornado and other python apps.
Stars: ✭ 69 (+137.93%)
Mutual labels:  crash-reporting, error-monitoring
Airbrake Ruby
A plain Ruby Airbrake notifier
Stars: ✭ 52 (+79.31%)
Mutual labels:  crash-reporting, error-monitoring
Ohbug
An open source application information monitoring platform.
Stars: ✭ 101 (+248.28%)
Mutual labels:  crash-reporting, error-monitoring
Raven Csharp
Superseded by: https://github.com/getsentry/sentry-dotnet
Stars: ✭ 231 (+696.55%)
Mutual labels:  crash-reporting, error-monitoring
Bugsnag Android Ndk
DEPRECATED - this project now lives at bugsnag/bugsnag-android
Stars: ✭ 42 (+44.83%)
Mutual labels:  crash-reporting, error-monitoring
Raven.cr
Raven is a Crystal client for Sentry
Stars: ✭ 96 (+231.03%)
Mutual labels:  crash-reporting, error-monitoring
Sentry Laravel
Laravel SDK for Sentry
Stars: ✭ 927 (+3096.55%)
Mutual labels:  crash-reporting, error-monitoring
Sentry Php
The official PHP SDK for Sentry (sentry.io)
Stars: ✭ 1,591 (+5386.21%)
Mutual labels:  crash-reporting, error-monitoring
Exceptionless
Exceptionless server and jobs
Stars: ✭ 2,107 (+7165.52%)
Mutual labels:  crash-reporting, error-monitoring
Sentry Telegram
Plugin for Sentry which allows sending notification via Telegram messenger.
Stars: ✭ 168 (+479.31%)
Mutual labels:  crash-reporting, error-monitoring
Bugsnag Go
Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
Stars: ✭ 155 (+434.48%)
Mutual labels:  crash-reporting, error-monitoring
Bugsnag Android
Bugsnag crash monitoring and reporting tool for Android apps
Stars: ✭ 990 (+3313.79%)
Mutual labels:  crash-reporting, error-monitoring
Bugsnag Node
[DEPRECATED] Please upgrade to our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 48 (+65.52%)
Mutual labels:  crash-reporting, error-monitoring
Sentry
Sentry is cross-platform application monitoring, with a focus on error reporting.
Stars: ✭ 29,700 (+102313.79%)
Mutual labels:  crash-reporting, error-monitoring
Sharpbrake
Airbrake Notifier for .NET
Stars: ✭ 78 (+168.97%)
Mutual labels:  crash-reporting, error-monitoring
Bugsnag Cocoa
Bugsnag crash reporting for iOS, macOS and tvOS apps
Stars: ✭ 167 (+475.86%)
Mutual labels:  crash-reporting, error-monitoring
Bugsnag Laravel
Bugsnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
Stars: ✭ 746 (+2472.41%)
Mutual labels:  crash-reporting, error-monitoring
Airbrake
The official Airbrake library for Ruby applications
Stars: ✭ 896 (+2989.66%)
Mutual labels:  crash-reporting, error-monitoring
Raygun4net
Raygun provider for .NET
Stars: ✭ 107 (+268.97%)
Mutual labels:  crash-reporting, error-monitoring

Note. Python 3.4+ users are strongly advised to try new Airbrake Python notifier which supports async API and code hunks. Python 2.7 users should continue to use this notifier.

Overview

When I went to implement Airbrake in Sprint.ly I found two projects that looked like they might do the trick: django-airbrake, which was forked from the dormant django-hoptoad and Pytoad which wasn't made for Django. In the end, I decided to use bits and pieces of the two as the older django-airbrake wasn't working with the newer API and Pytoad didn't have any Django sugar.

Install airbrake-django from github using pip

pip install git+https://github.com/airbrake/airbrake-django.git

Configure airbrake in your settings.py

To configure airbrake you will need to add airbrake to your INSTALLED_APPS and create the AIRBRAKE dictionary.

Add airbrake to INSTALLED_APPS in your settings.py

INSTALLED_APPS = (
    'django.contrib.admin',
    # ...
    'airbrake'
)

Create the AIRBRAKE dictionary in your settings.py for project:

# Airbrake settings
AIRBRAKE = {
    'API_KEY': 'YOUR_PROJECT_API_KEY',
    'TIMEOUT': 5,
    'ENVIRONMENT': 'production',
    'FILTERED_EXCEPTIONS': (Http404,)
}

Then just restart your server!

Automatically sending errors to airbrake

New-style (introduced in Django 1.10):
MIDDLEWARE = (
    ...,
    'airbrake.middleware.AirbrakeNotifierMiddleware'
)
Old-style:
MIDDLEWARE_CLASSES = (
    ...,
    'airbrake.middleware.AirbrakeNotifierMiddleware'
)

Manually sending errors to airbrake

This example illustrates sending an error to Airbrake in a try catch.

# hello.py
from django.http import HttpResponse
from airbrake.utils.client import Client

def hello_errors(request):
    try:
        1/0
    except Exception as error:
        airbrake = Client()
        airbrake.notify(error, request)

    return HttpResponse("Hello Erorrs")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].