Skip to content

0.13.0

Compare
Choose a tag to compare
@wenzhe-log10 wenzhe-log10 released this 02 Oct 20:54
· 27 commits to main since this release
e4e13bf

What's Changed

API change

Add log10_tags context manager and with_log10_tags decorator by @wenzhe-log10 in #299
This PR introduces:

  1. log10_session Enhancement - Improved handling of tags in nested log10_session calls. Tags will now be appended instead of overwritten.

Example:

with log10_session(tags=["A"]):
  with log10_session(tags=["B"]):
    # New behavior: tags will be ["A", "B"]
    # Old behavior: tags were just ["B"]

Note: this only affects nested log10_session usage. Single log10_session calls are unchanged.

  1. Introducing log10_tags context manager and with_log10_tags function decorator to add tags
    • A new context manager for adding tags to logs without creating a new session ID.
    • Can be used independently or with log10_session.
    • Tags will be appended in nested case.

Example link

Misc

Full Changelog: 0.12.0...0.13.0