======================
Django Correlation IDs
======================
.. image:: https://travis-ci.org/snowball-one/cid.png?branch=master
:target: https://travis-ci.org/snowball-one/cid
.. image:: https://coveralls.io/repos/snowball-one/cid/badge.png?branch=master
:target: https://coveralls.io/r/snowball-one/cid?branch=master
Logging is important. Anyone who has had a call at 3am to say the site is down
knows this. Without quality logging it is almost impossible to work out what
on earth is happening.
Even with plenty of logs it can be hard to track down exactly what the effects
of a particular request are. Enter Django Correlation IDs. The approach
is quite a simple one. Incoming requests are assigned a unique id (a uuid).
This can either happen in say your public facing web server (e.g. nginx) or be
applied as soon as it hits django.
This ``cid`` is then available throught the django request/response cycle. We
provide filters for logging witch adds the ``cid`` to the logging record so you
can add it to your formatting string. We also provide wrappers around all the
standard database backends which adds the ``cid`` as a comment before each SQL
request.
Features
--------
* Processing/Generation of a correlation id
* Database wrappers to add correlation id to each sql call
* Logging filter to inject the correlation id into logs
* A template context processe to make correlation id available in templates
* Output correlation id as a header
Documentation can be found at: http://django-correlation-id.readthedocs.org/
History
-------
0.1.0 (2014-08-05)
++++++++++++++++++
* First release on PyPI.
0.1.2 (2016-12-01)
++++++++++++++++++
* Made CID repsonse header configurable, and optional (thanks @dbaty)
0.2.0 (2016-12-06)
+++++++++++++++++
* Added support for Django 1.10 middleware (thanks @qbey)
Django Correlation IDs
======================
.. image:: https://travis-ci.org/snowball-one/cid.png?branch=master
:target: https://travis-ci.org/snowball-one/cid
.. image:: https://coveralls.io/repos/snowball-one/cid/badge.png?branch=master
:target: https://coveralls.io/r/snowball-one/cid?branch=master
Logging is important. Anyone who has had a call at 3am to say the site is down
knows this. Without quality logging it is almost impossible to work out what
on earth is happening.
Even with plenty of logs it can be hard to track down exactly what the effects
of a particular request are. Enter Django Correlation IDs. The approach
is quite a simple one. Incoming requests are assigned a unique id (a uuid).
This can either happen in say your public facing web server (e.g. nginx) or be
applied as soon as it hits django.
This ``cid`` is then available throught the django request/response cycle. We
provide filters for logging witch adds the ``cid`` to the logging record so you
can add it to your formatting string. We also provide wrappers around all the
standard database backends which adds the ``cid`` as a comment before each SQL
request.
Features
--------
* Processing/Generation of a correlation id
* Database wrappers to add correlation id to each sql call
* Logging filter to inject the correlation id into logs
* A template context processe to make correlation id available in templates
* Output correlation id as a header
Documentation can be found at: http://django-correlation-id.readthedocs.org/
History
-------
0.1.0 (2014-08-05)
++++++++++++++++++
* First release on PyPI.
0.1.2 (2016-12-01)
++++++++++++++++++
* Made CID repsonse header configurable, and optional (thanks @dbaty)
0.2.0 (2016-12-06)
+++++++++++++++++
* Added support for Django 1.10 middleware (thanks @qbey)
Metadata
Release files for django-cid 0.2.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 | |
|---|---|---|---|
| django-cid-0.2.0.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_cid-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 15.6 kB
Release files / django-cid-0.2.0.tar.gz
| Download URL | django-cid-0.2.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84de1c1a2e2f71641112d3981dd9ba04b705ea422dc1b80de63acdc7463f00cb
|
|
BLAKE2b-256 checksum How to use checksums |
1933a27f5985e324350cf8c4d297efd8157b5bb44cab97bb15ed73ddd16bc276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_cid-0.2.0-py2.py3-none-any.whl
| Download URL | django_cid-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
55da2640a0d3d64663c6c787956db220822edf2263ad0e770b202c4da58b73cf
|
|
BLAKE2b-256 checksum How to use checksums |
99519e456430de5e0725569a00e13b53f39686b4721a79d59801d6e2c7ed7a86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |