Releases: pydantic/logfire
Releases · pydantic/logfire
v2.4.1
- Allow new context argument of metric instrument methods to be passed positionally by @alexmojaki in #616
v2.4.0
- Support
logfire.instrument
without arguments by @Kludex in #607 - Handle internal errors in
create_json_schema
by @alexmojaki in #613 - Handle errors in auto-tracing better by @alexmojaki in #610
v2.3.0
- 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
- 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
- Allow instrumenting a single httpx client by @alexmojaki in #575
- Log LLM tool call for streamed response by @jackmpcollins in #545
v2.1.2
- Check
.logfire
for creds to respect'if-token-present'
setting by @sydney-runkle in #561
v2.1.1
- 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
v2.0.0
- 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 receiveNone
. Butinstrument
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.
- Decorated async generator functions won't support the
v1.3.2
- Handle NonRecordingSpans for fastapi arguments by @alexmojaki in #551
- Preserve docstrings in auto-tracing by @alexmojaki in #550