Comparison
asgi-correlation-id vs django-cid vs django-log-request-id vs django-structlog
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Middleware correlating project logs to individual requests
Maintained. Last release 6 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install asgi-correlation-idCorrelation IDs in Django for debugging requests
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install django-cidDjango middleware and log filter to attach a unique ID to every log message generated as part of a request
Maintained. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install django-log-request-idStructured Logging for Django
Actively maintained. Last release 6 weeks ago, commits in 11 of the last 26 weeks. A safe choice.
pip install django-structlogIn short
- django-cid is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- asgi-correlation-id is the most used: 5.4M downloads a month.
- django-structlog is better maintained: Pythie’s Index 71 against 45.
- django-structlog is growing fastest: downloads +32% over the last month.
Side by side
| Metric | asgi-correlation-id | django-cid | django-log-request-id | django-structlog |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 45 | 18 |