Django GUID
Django GUID attaches a unique correlation ID/request ID to all your log outputs for every request.
In other words, all logs connected to a request now has a unique ID attached to it, making debugging simple.
Which version of Django GUID you should use depends on your Django version and whether you run ASGI or WSGI servers.
To determine which Django-GUID version you should use, please see the table below.
Django GUID >= 3.0.0 uses ContextVar to store and access the GUID. Previous versions stored the GUID to an object,
making it accessible by using the ID of the current thread. (Version 2 of Django GUID is supported until Django2.2 LTS has passed.)
Resources:
Free software: BSD License
Documentation: https:/django-guid.readthedocs.io
Homepage: https:/github.com/snok/django-guid
Examples
Log output with a GUID:
INFO ... [77
|