tomwojcik/starlette-context
Middleware 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.
PythonMIT
Issues
- 0
`ContextDoesNotExistErrorContext`: Filter in Python native logger with FastAPI
#135 opened by JanmanX - 3
Possible to have multiple RawContextMiddlewares?
#112 opened by coneybeare - 1
Docs are outdated
#87 opened by tomwojcik - 2
- 0
bump starlette 0.23.1 -> 0.25 and other deps
#92 opened by tomwojcik - 2
Properly use pyproject.toml
#69 opened by hhamana - 8
- 5
Support for CorrelationIdPlugin and CorrelationIdPlugin still executing when application encounters an exception
#9 opened by derekbekoe - 8
Consider removing `RawContextMiddleware` and keeping only `ContextMiddleware` after resolving memory usage issue
#47 opened by tomwojcik - 2
- 8
- 2
Improving the __repr__ method of _Context
#65 opened by zachary822 - 1
Can't use http middleware
#64 opened by rahul-agarwal-savii - 2
- 4
Improved logging
#58 opened by KBoehme - 1
codecov report not being uploaded
#38 opened by tomwojcik - 2
Intended behavior on BackgroundTasks
#56 opened by hhamana - 3
- 1
No module named '_contextvars'
#49 opened by guillain - 1
- 4
Can't write new plugin - plugin is not iterable
#43 opened by dddenes - 2
- 8
- 4
Add request-id to logs without using LoggerAdapter
#19 opened by dev-99 - 2
Access context from another middleware
#32 opened by HarrySky - 5
rewrite middleware to pure ASGI
#18 opened by dmig-alarstudios - 3
Test fails due to an uninitialized context
#35 opened by brunoripa - 2
lower-case key name for plugin headers
#33 opened by schunka - 2
Access content in thread
#29 opened by oschulzSam - 3
JWT token?
#28 opened by Feijo - 2
RequestTime plugin support.
#20 opened by yinkh - 5
- 1
Python 3.6 installs 0.1.3 version
#14 opened by tuukkamustonen - 8
- 1
Enforce that if request/correlation id provided, it must be a UUID otherwise generate new
#10 opened by derekbekoe - 1
Provide option in RequestIdPlugin/CorrelationIdPlugin to always create a new UUID
#11 opened by derekbekoe - 1
Extract data from the request body
#5 opened by andrei-shabanski