starlette-contextMiddleware for Starlette that allows you to store and access the context data of a request. Can be used with logging so logs automatically use request headers such as x-request-id or x-correlation-id.
django-log-request-idDjango middleware and log filter to attach a unique ID to every log message generated as part of a request
Weekly downloads over the last yearSeptemberOctoberNovemberDecember2026FebruaryMarchAprilMayJuneJulyAugustDate00.20.40.60.811.21.41.61.822.22.4 million downloads per week