Update request-id recipe to use contextvars
instead of threading.local()
#2260
Labels
documentation
good first issue
Comment on this issue if you'd like to volunteer to work on this. Thanks!
maintenance
needs contributor
Comment on this issue if you'd like to volunteer to work on this. Thanks!
Milestone
contextvars
is a newer module in the stdlib (3.7+) that is more advanced thantheading.local()
as it not only understand threads, but alsoasyncio
coroutines, etc.Update the Request ID Logging recipe to use
contextvars
.Edit: also add tests for this recipe.
The text was updated successfully, but these errors were encountered: