Skip to content

Releases: pydantic/logfire

v2.5.0

27 Nov 15:43
67c20af
Compare
Choose a tag to compare

v2.4.1

21 Nov 12:23
7021232
Compare
Choose a tag to compare
  • Allow new context argument of metric instrument methods to be passed positionally by @alexmojaki in #616

v2.4.0

20 Nov 11:56
be4bad5
Compare
Choose a tag to compare

v2.3.0

14 Nov 14:52
2c093b6
Compare
Choose a tag to compare
  • Respect repr on fields when logging a dataclass by @dmontagu in #592
  • Allow extract_args to be an iterable of argument names by @alexmojaki in #570
  • Make metric instrument methods compatible with older OTel versions by @alexmojaki in #600
  • Add span links by @Kludex in #587

v2.2.1

13 Nov 19:04
d6879d9
Compare
Choose a tag to compare
  • Ignore trivial/empty functions in auto-tracing by @alexmojaki in #596
  • Handle missing attributes in _custom_object_schema by @alexmojaki in #597
  • Let user know what they should install for integrations by @Kludex in #593

v2.2.0

13 Nov 12:05
e7ff8cb
Compare
Choose a tag to compare

v2.1.2

04 Nov 20:46
607f29b
Compare
Choose a tag to compare
  • Check .logfire for creds to respect 'if-token-present' setting by @sydney-runkle in #561

v2.1.1

31 Oct 11:00
718488f
Compare
Choose a tag to compare
  • Use functools.wraps in @logfire.instrument by @alexmojaki in #562
  • Set logfire.code.work_dir resource attribute whenever other code source attributes are present by @alexmojaki in #563
  • Don't scrub logfire.logger_name by @alexmojaki in #564

v2.1.0

30 Oct 15:18
70d93fe
Compare
Choose a tag to compare
  • Add ASGI & WSGI instrument methods by @Kludex in #324
  • Add logfire.work_dir resource attribute by @Kludex in #532
  • Add logfire.configure(environment=...) by @Kludex in #557
  • Show message from API backend when checking token fails by @alexmojaki in #559

v2.0.0

30 Oct 09:45
c1a70d3
Compare
Choose a tag to compare
  • 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.