{"id":16420688,"url":"https://github.com/bouke/django-airbrake","last_synced_at":"2025-03-23T07:31:58.028Z","repository":{"id":4434662,"uuid":"5572826","full_name":"Bouke/django-airbrake","owner":"Bouke","description":"Django Airbrake provides a logging handler to push exceptions and other errors to airbrakeapp or other airbrake-compatible exception handler services (e.g. aTech Media's Codebase).","archived":false,"fork":false,"pushed_at":"2018-05-27T08:48:41.000Z","size":41,"stargazers_count":17,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T07:09:58.733Z","etag":null,"topics":["airbrake","codebasehq","django","logging"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/django-airbrake","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bouke.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-27T15:19:42.000Z","updated_at":"2018-10-16T16:22:02.000Z","dependencies_parsed_at":"2022-09-13T13:22:14.614Z","dependency_job_id":null,"html_url":"https://github.com/Bouke/django-airbrake","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bouke%2Fdjango-airbrake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bouke%2Fdjango-airbrake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bouke%2Fdjango-airbrake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bouke%2Fdjango-airbrake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bouke","download_url":"https://codeload.github.com/Bouke/django-airbrake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244281428,"owners_count":20427833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airbrake","codebasehq","django","logging"],"created_at":"2024-10-11T07:28:46.306Z","updated_at":"2025-03-23T07:31:57.744Z","avatar_url":"https://github.com/Bouke.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============\nDjango Airbrake\n===============\n\n.. image:: https://travis-ci.org/Bouke/django-airbrake.png?branch=master\n    :alt: Build Status\n    :target: https://travis-ci.org/Bouke/django-airbrake\n\n.. image:: https://coveralls.io/repos/Bouke/django-airbrake/badge.png?branch=master\n    :alt: Test Coverage\n    :target: https://coveralls.io/r/Bouke/django-airbrake?branch=master\n\n.. image:: https://badge.fury.io/py/django-airbrake.png\n    :alt: PyPI\n    :target: https://pypi.python.org/pypi/django-airbrake\n\nDjango Airbrake provides a logging handler to push exceptions and other errors\nto airbrakeapp or other airbrake-compatible exception handler services (e.g.\naTech Media's Codebase).\n\nCompatible with all supported Django (LTS) versions. At the moment of writing\nthat's including 1.11 and 2.0 on Python 2.7(only django1.11), 3.4, 3.5 and 3.6.\n\n\nInstallation\n============\n\nInstallation with ``pip``:\n::\n\n    $ pip install django-airbrake\n\nAdd ``'airbrake.handlers.AirbrakeHandler'`` as a logging handler:\n::\n\n    LOGGING = {\n        'version': 1,\n        'disable_existing_loggers': False,\n        'filters': {\n            'require_debug_false': {\n                '()': 'django.utils.log.RequireDebugFalse'\n            }\n        },\n        'handlers': {\n            'airbrake': {\n                'level': 'WARNING',\n                'class': 'airbrake.handlers.AirbrakeHandler',\n                'filters': ['require_debug_false'],\n                'api_key': '[your-api-key]',\n                'env_name': 'develop',\n            }\n        },\n        'loggers': {\n            'django.request': {\n                'handlers': ['airbrake'],\n                'level': 'WARNING',\n                'propagate': True,\n            },\n        }\n    }\n\nSettings\n========\n\n``level`` (built-in setting)\nChange the ``level`` to ``'ERROR'`` to disable logging of 404 error messages.\n\n``api_key`` (required)\n    API key provided by the exception handler system.\n\n``env_name`` (required)\n    Name of the environment (e.g. production, develop, testing)\n\n``api_url``\n    To use aTech Media's Codebase exception system, provide an extra setting\n    ``api_url`` with the value\n    ``'https://exceptions.codebasehq.com/notifier_api/v2/notices'``.\n\n``env_variables``\n    List of environment variables that should be included in the error message,\n    defaults to ``['DJANGO_SETTINGS_MODULE']``.\n\n``meta_variables``\n    List of ``request.META`` variables that should be included in the error\n    message, defaults to ``['HTTP_USER_AGENT', 'HTTP_COOKIE', 'REMOTE_ADDR',\n    'SERVER_NAME', 'SERVER_SOFTWARE']``.\n\n``timeout``\n    Timeout in seconds to send the error report, defaults to 30 seconds.\n\nContributing\n============\n* Fork the repository on GitHub and start hacking.\n* Run the tests.\n* Send a pull request with your changes.\n\nReleasing\n---------\nThe following actions are required to push a new version::\n\n    bumpversion [major|minor|patch]\n    python setup.py sdist bdist_wheel upload\n    git push \u0026\u0026 git push --tags\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouke%2Fdjango-airbrake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouke%2Fdjango-airbrake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouke%2Fdjango-airbrake/lists"}