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 #3

kompanycoder opened this issue Aug 22, 2019 · 1 comment

Setup Airbrake for your Python application #3

kompanycoder opened this issue Aug 22, 2019 · 1 comment


Copy link

@kompanycoder kompanycoder commented Aug 22, 2019


Using pip

pip install -U airbrake


The easiest way to get set up is with a few environment variables:

(You can find your project ID and API KEY with your project's settings):

export AIRBRAKE_API_KEY=<Your project API KEY>
export AIRBRAKE_PROJECT_ID=<Your project ID>
export AIRBRAKE_ENVIRONMENT=production

and you're done!

Otherwise, you can instantiate your AirbrakeHandler by passing these values as arguments to the getLogger() helper:

import airbrake

logger = airbrake.getLogger(api_key="<Your project API KEY>", project_id=<Your project ID>)

except Exception:
    logger.exception("Bad math.")

For more information please visit our official GitHub repo.


This comment has been minimized.

Copy link

@issue-label-bot issue-label-bot bot commented Aug 22, 2019

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.61. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@kompanycoder kompanycoder self-assigned this Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.