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

Integrate with django channels

joaolrc opened this issue · comments

Hello

First and foremost, good work here.

It would be nice to integrate with channels.

Have you already figured some way or need some code to be written?

Thanks

Hi,

Thanks!

I would expect it to work the exact same? I have never used Django Channels personally, but there's nothing too fancy going on here.

Probably there is something to be done because middleware does not get triggered by channels connections.

Also there is no request object.

Happy to accept PR with documentation or implementation, but I won’t be able to assist you, unfortunately.