bug-tracer-client
bug-tracer-client is a reusable Django app that captures unhandled exceptions and sends them to a Bug Tracer backend.
Installation
pip install bug-tracer-client
Django setup
Add the app to INSTALLED_APPS:
INSTALLED_APPS = [
# ...
"bug_tracer_client",
]
Add the middleware after authentication middleware so authenticated user context can be included:
MIDDLEWARE = [
# ...
"django.contrib.auth.middleware.AuthenticationMiddleware",
"bug_tracer_client.middleware.BugTracerMiddleware",
]
Set the single required setting:
BUG_TRACER_DSN = "bugtracer+https://PUBLIC_KEY@bug-tracer.example.com/1"
Supported DSN formats:
bugtracer+https://<public_key>@<host>[:<port>]/<project_id>bugtracer+http://<public_key>@<host>[:<port>]/<project_id>
What it sends
The middleware sends a best-effort JSON payload containing:
- exception type and message
- stacktrace frames
- request method and path
- optional authenticated user info
Sensitive fields such as password, token, authorization, and cookie are redacted before sending.
Smoke check
from bug_tracer_client import __version__
print(__version__)
Release files for bug-tracer-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bug_tracer_client-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bug_tracer_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / bug_tracer_client-0.1.0.tar.gz
| Download URL | bug_tracer_client-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
887b5e6f552c838bce55c8635b32fabd3d1c1b0de0c9310f66ac6d6702a37cfd
|
|
BLAKE2b-256 checksum How to use checksums |
93aae9c853c26ab0d692f9d962844bea2848fc06e1cb50315942161ab0211ed4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|
Release files / bug_tracer_client-0.1.0-py3-none-any.whl
| Download URL | bug_tracer_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34b08ae738fcba6ea2d3fbb46bd10a390db7aceb6fa291d95ac385f4bc4c483f
|
|
BLAKE2b-256 checksum How to use checksums |
67a202b02170825afa6ce5aa93185bba49553754bbeb54df4488ac7fb90b2338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0rc1
|