Breaking changes:
- rename
Contextprotocol toAbstractContext - renamed
SimpleContexttoContext - removed
SimpleContext.dataproperty - removed
get_user()fromContextandSimpleContext - rename term
wraptobindand attach/detach to bind/unbind - removed
SimpleContextDataclass ktx_idis now required to createContextktx_add_lognow does not add user info as there's now no user info in the context
New features:
- Introduced new
AbstractContextUserprotocol withContextUserimplementation to hold user info - Added abstract adapter ability to include in the Context and ContextUser properties' setting
- Introduced
ContextFactoryandContextUserFactoryto create Context and ContextUser with the ability to modify creation behaviour. - New
ktx_add_user_logto add user info to log's event dict
- rename uq_id to ktx_id
- remove opentelemetry dependency
- move to github
- change license to Apache 2.0
- remove opentelemetry-sdk from dependencies
- add
ctxproperty toContextWrap
- simplify context - it is not longer a Generic class/Protocol
- added ctx_wrap function that attached context to ContextVar
- removed GenericContext
- log: serialize data fields and user id always as str
- fix tests
- support for python >= 3.9
- flat dict in logging
- Initial release