BugsRadar

Flask

Updated 1 October 2026 · BugsRadar team

Flask logs unhandled exceptions through app.logger, so one init call next to Flask(__name__) is enough.

Install the package first: pip install bugsradar (see Install). The API key is secret: where it may go.

app.py

app.py
import os
import bugsradar
from flask import Flask

bugsradar.init(api_key=os.environ["BUGSRADAR_KEY"])
app = Flask(__name__)

What arrives

Every record at ERROR and above arrives, from the framework's loggers and from your own alike: see the logging module. Exceptions you catch yourself go through direct calls. What the message looks like in the chat, how repeats are counted and when errors are bundled: see What you receive.

Next: FastAPI →