snok / django-guid

Inject an ID into every log message from a Django request. ASGI compatible, integrates with Sentry, and works with Celery

Home Page:https://django-guid.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Full UUID as Text

Mdslino opened this issue · comments

Why we don't have the option of using the full UUID 776336d4-545e-43e1-bd3b-017794af48e9 instead of the hex output? 776336d4545e43e1bd3b017794af48e9

I think I might know the answer, but what's your use case @Mdslino? 🙂

All the applications in my ecosystem already use the full UUID as GUID, so when someone queries for distributed logs they already search for the full version. I think an option to change that would be nice. I can work on a PR if you want.

I don’t mind adding that option, PR welcome.

The GUIDs at my work are all in hex-format, so iirc I just went with that.