snok / asgi-correlation-id

Request ID propagation for ASGI apps
MIT License
369 stars 29 forks source link

add example on how to add correlation_id when using hypercorn and FastAPI #79

Closed nesies closed 6 months ago

nesies commented 6 months ago

Closes #78

sondrelg commented 6 months ago

Thanks @nesies. I think it would be nice if we were able to boil this down to just the line of code that were unique to hypercorn (and same for the other example sections), since quite a lot of the code is shared between examples - but I guess it doesn't hurt that much to just have full examples 👍