From 5ace1ae2d1fb9c6bab803757ce41d3568e2531bd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 9 Jan 2026 21:51:05 +0000 Subject: [PATCH] Update README to mention use of `ContextVar` Fixes #74 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 216e330..8e947b6 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ So you can grep (or otherwise search) a set of logs for a high-traffic applicati How? ---- -**The request ID is stored in a thread local**. Use of thread locals is not generally considered best practice for Django applications, but seems to be the only viable approach in this case. Pull requests with better ideas are welcome. +**The request ID is stored in a [`ContextVar`](https://docs.python.org/3/library/contextvars.html#contextvars.ContextVar)**. Use of context variables is not generally considered best practice for Django applications, but seems to be the only viable approach in this case. Pull requests with better ideas are welcome. Any other neat features? ------------------------