Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Airbrake for your Python application #5

Closed
Skiller9090 opened this issue Sep 14, 2020 · 1 comment
Closed

Setup Airbrake for your Python application #5

Skiller9090 opened this issue Sep 14, 2020 · 1 comment
Labels
Projects

Comments

@Skiller9090
Copy link
Owner

Installation

Our Python error library (pybrake) requires Python 3.4+.

Python 2.7 users should follow the Python 2 instructions.

pip install -U pybrake

Configuration

(You can find your project ID and API key in your project's settings)

import pybrake


notifier = pybrake.Notifier(project_id=<Your project ID>,
                            project_key='<Your project API KEY>',
                            environment='production')

Send a test error

To test that you've installed Airbrake correctly, try triggering a test error.

try:
    raise ValueError('hello')
except Exception as err:
    notifier.notify(err)

Full documentation

For more information please visit our official GitHub repo.

@Skiller9090
Copy link
Owner Author

Setup Complete

@Skiller9090 Skiller9090 added this to Done in Lucifer Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant