Structlog processor#5
Conversation
Also changed pyproject.toml, to use dependency groups while testing. Also generated uv.sync file (for those who use uv) Fixed pytest asyncio mode to a normal one
Downsides: users might see unwantanted class names (python class names) Upsides: users can now set non JSONable objects as metadata, and be fine.
|
@
The structlog processor itself looks good 👍 |
|
Hi, tomorrow will try to do that. Also i forgore to update the ci.yml (will do) |
Took json encoder with inspiration to logfire, Added pytest-mock package and shortened some tests boilerplate, Custom json encoder (both on size calc and send)
|
drop Python 3.8 and set Needs: Separately, one real bug: |
Now only python3.10+
|
Almost there 👍 Two things left:
|
89bed7b to
1198d3c
Compare
|
All green now thanks a lot for the thorough work on this! 🙏 The structlog processor + JSON encoder are a really nice addition, and dropping the EOL Python versions was the right call. Merging. |
Short summary:
1: changed relative imports to absolute.
2:
added LogTideProcessor based on structlog, and tests for that. (and fixed tests)
does not requires
structlogto be installed.usage example: