Skip to content

v2.0.0

Compare
Choose a tag to compare
@alexmojaki alexmojaki released this 30 Oct 09:45
· 125 commits to main since this release
c1a70d3
  • BREAKING CHANGES caused by @logfire.instrument() no longer needing source code by @alexmojaki in #543:
    • Decorated async generator functions won't support the .asend method properly - the generator will only receive None. But instrument shouldn't be used on generators anyway unless the generator is being used as a context manager, so new warnings about this have been added. See https://logfire.pydantic.dev/docs/guides/advanced/generators/#using-logfireinstrument
    • Functions decorated with @logfire.instrument() and functions nested within them can now be auto-traced unlike before. Use @logfire.no_auto_trace anywhere on functions you want to exclude, especially the instrumented function.