Releases: pydantic/logfire
Releases · pydantic/logfire
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
v1.3.1
- Handle null fastapi route.name and route.operation_id by @alexmojaki in #547
v1.3.0
- Add Code Source links by @Kludex in #451 and #505
- Add fastapi arguments attributes directly on the root OTEL span, remove
use_opentelemetry_instrumentation
kwarg by @alexmojaki in #509 - Allow setting tags on logfire spans by @AdolfoVillalobos in #497
- Add logger name to
LogfireLoggingHandler
spans by @samuelcolvin in #534 - Format
None
asNone
instead ofnull
in messages by @alexmojaki in #525 - Use
PYTEST_VERSION
instead ofPYTEST_CURRENT_TEST
to detectlogfire.configure()
being called within a pytest run but outside any test by @Kludex in #531
v1.2.0
What's Changed
- Add
local
parameter tologfire.configure()
by @alexmojaki in #508
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
- Fix error in checking for generators in auto-tracing by @alexmojaki in #498
- Support
'if-token-present'
for env var'LOGFIRE_SEND_TO_LOGFIRE'
by @sydney-runkle in #488 - Use
Compression.Gzip
by @Kludex in #491
New Contributors
- @yeger00 made their first contribution in #479
- @bllchmbrs made their first contribution in #494
Full Changelog: v1.0.1...v1.1.0
v1.0.1
What's Changed
- Fix warning about unregistered MetricReaders by @alexmojaki in #465
Full Changelog: v1.0.0...v1.0.1
v1.0.0
What's Changed
- Upgrade
DeprecationWarning
s toUserWarning
s by @alexmojaki in #458 - Update query client APIs by @dmontagu in #454
Full Changelog: v0.55.0...v1.0.0
v0.55.0
What's Changed
- Replace
pydantic_plugin
inlogfire.configure()
withlogfire.instrument_pydantic()
by @alexmojaki in #453 - Keep
METRICS_PREFERRED_TEMPORALITY
private by @alexmojaki in #456 - Use
SeededRandomIdGenerator
by default to prevent interference fromrandom.seed
by @alexmojaki in #457
Full Changelog: v0.54.0...v0.55.0