Start here. This is the direct spoken answer to practice first.
Overview
Uses task-aware context for tracing while keeping business inputs explicit and correctly reset.
A ContextVar stores context-local state that follows asyncio task context, so concurrent requests can hold different values without one process global being overwritten. It is useful for correlation IDs, trace context, locale, or other cross-cutting metadata that many infrastructure layers need. Thread-local storage alone is insufficient when many tasks share one event-loop thread.