Python

Install pip install sentry-sdk

Install the official sentry-sdk and point it at your Blipit DSN. Integrations for Django, Flask, FastAPI, Celery, SQLAlchemy and others are detected on their own.

1Install

sh
pip install sentry-sdk

2Initialise at startup

For Django, put it at the top of settings.py. For Flask or FastAPI, before the app is created.

python
import sentry_sdk

sentry_sdk.init(
    dsn="https://<public key>@in.blipit.io/<project id>",
    environment="production",
    release="myapp@1.4.2",
    traces_sample_rate=0.2,
    send_default_pii=False,
)

3Check it works

Open Issues in app.blipit.io. The first event appears within a few seconds, grouped into an issue, and the people in charge get an email.

python
sentry_sdk.capture_message("Hello from Python")

Good to know

  • Odoo: do not use this; install the Blipit module from the Odoo Apps store instead. It knows Odoo's request, user and company.
  • traces_sample_rate sends transactions to the Performance page; set it to 0 to send errors only.

Stuck? Email support@blipit.io. Keys and the exact DSN for each project are under API keys in app.blipit.io.