Solutionunvalidated

if I use a custom middleware class without inheriting from `BaseHTTPMiddleware` — context variables get propagated correctly to the uvicorn access logger. Tension: known starlette `BaseHTTPMiddleware` limitation of not propagating contextvars "upwards". Outcome: the solution would be along the lines of:.

b9fe1f68-6283-476e-9c92-2ebab59d7607

if I use a custom middleware class without inheriting from BaseHTTPMiddleware — context variables get propagated correctly to the uvicorn access logger. Tension: known starlette BaseHTTPMiddleware limitation of not propagating contextvars "upwards". Outcome: the solution would be along the lines of:.