All notable changes to this project should be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- StarletteTracingMiddleware & TracingMiddleware (Flask_trace.py): generate trace-id if not set
Updating major version as this is a breaking change from previous behaviour.
- StarletteTracingMiddleware: Also logging exceptions including log context
Using unicorn this may lead to double logging, but at least exceptions are logged using log context.
May consider adding an option to opt out of this behaviour.
- added logging of user agent header to request StarletteTracingMiddleware
- reformatted all code using black formatter
- removed usage of walrus operator in order to be python 3.6 compatible
- Logging of user-id
- user-id is picked up from incoming http header User-Id and added to LogContext
- Outgoing requests also send User-Id header if user_id is present in LogContext
- Some README text briefly describing the project.
- MIT license.
- Changelog!