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

Add the option to send the GUID/Correlation-ID as an outgoing header

JonasKs opened this issue · comments

Describe the solution you'd like
Add the option to add the GUID/Correlation-ID to the response header.
Should be a setting.

Additional context
Allowing users or sites that are using the Django app to use the Correlation-ID to report issues.
Example:

  • User sends a request
  • django-guid adds a Correlation-ID to that request
  • Somewhere in the request something unexpected goes wrong, the user gets a !2xx status code back.
  • The front end prints the Correlation-ID to the user.
  • The user can use that specific ID when contacting the developers.