Skip to content

v6.0.0

Latest

Choose a tag to compare

@alexmojaki alexmojaki released this 19 Nov 18:02
216568a
  • Switch the CLI to use the new logfire-cli package @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_string to 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=False when logging by @Fahmid-Arman in #2730
  • Anthropic: Use the semconv mime_type key in blob and file parts instead of media_type by @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