Pydantic Logfire 6.0.0 release notes
Pydantic Logfire 6.0.0 was released on November 19, 2026. The latest version is 6.0.1.
This is a new major version.
Release notes
- Switch the CLI to use the new
logfire-clipackage @alexmojaki in #2833 - Allow some scrubbing in GenAI attributes (especially OpenAI and Anthropic), particularly tool calls and their results with sensitive-looking keys, rather than the broad whitelist from before, by @alexmojaki in #2823 and #2824.
- Add
ScrubbingOptions.transform_stringto mask strings more generally than keyword pattern matching, especially for finding structural patterns like email addresses and sensitive URLs, by @alexmojaki in #2800, #2802, #2804, #2816, #2812, #2827, and #2828. - Redact matches when scrubbing callbacks raise by @alexmojaki in #2795
- Continue scrubbing inside containers or in the rest of a string after a callback whitelists a match by @alexmojaki in #2778, #2794, #2799, and #2826.
- Warn instead of evaluating lambdas, generator expressions and comprehensions in f-strings by @v0ropaev in #2691
- Change default: Keep HTTPX spans enabled for OpenAI and Anthropic by @oxura in #2709
- Leave out Pydantic model fields with
repr=Falsewhen logging by @Fahmid-Arman in #2730 - Anthropic: Use the semconv
mime_type keyin blob and file parts instead ofmedia_typeby @jaeminbird in #2722 - Reject a trace sample rate outside 0.0 to 1.0 instead of keeping every trace by @Yasser-Ameur in #2818
- Don't record GeneratorExit as an error when a generator is closed early by @astroknot-sheep in #2785
- Use the cost reported by the AI Gateway for OpenAI, Anthropic, and Google GenAI calls by @ddanielcruzz in #2702
- Add baggage to log record attributes by @adriangb in #2788
- fix: materialize generator messages in instrument_anthropic by @fxia0018 in #2714
- Let the logfire-api shim's StructlogProcessor, LogfireLoggingHandler and loguru_handler be used without logfire by @Ishkirat-Singh in #2786
Source: GitHub release v6.0.0