v3.0.0
Changes
Breaking changes
-
Reworked the middleware settings (#39)
-
Reworded a warning logger (1883b31). This could potentially break log filters or monitoring dashboard, though is probably a non-issue for most.
Migration guide
The validate_header_as_uuid middleware argument was removed.
If your project uses validate_header_as_uuid=False, this is how the middleware configuration should change:
app.add_middleware(
CorrelationIdMiddleware,
header_name='X-Request-ID',
- validate_header_as_uuid=False
+ validator=None,
)Otherwise, just make sure to remove validate_header_as_uuid if used.
Read more about the new configuration options here.