Major changes
- Changes in format of attributes recorded by GenAI instrumentations:
- Default OpenAI and Anthropic instrumentation to new
version=2by @alexmojaki in #2363 - Support opentelemetry-instrumentation-google-genai>=1.0 by @alexmojaki in #2092
- Default OpenAI and Anthropic instrumentation to new
- Changes in data recorded by
logfire.instrument_pydantic():- Stop instrumenting third-party Pydantic models by default by @chocoHacks33 in #2054
- Record
input_dataon logs produced bylogfire.instrument_pydantic(record='failure')by @alexmojaki in #2352
- Keep tail-sampling buffers until every span in the trace has ended by @gyanu2507 in #2308
- Deprecation removals
- Remove deprecated query client APIs by @alexmojaki in #2333
- Remove deprecated CLI --logfire-url option by @alexmojaki in #2362
- Remove deprecated Flask exclude_urls argument by @alexmojaki in #2360
- Remove deprecated configure arguments by @alexmojaki in #2359
- Remove deprecated HTTPX capture arguments by @alexmojaki in #2361
- Moving modules out of the
logfire.experimentalnamespace:- Move forwarding out of experimental by @alexmojaki in #2358
- Move query client out of experimental by @alexmojaki in #2357
- Make managed variable pushes strict by default by @alexmojaki in #2368
Other
- Preserve OpenAI cost on deduplicated Agents spans by @alexmojaki in #2346
- fix(anthropic): price Bedrock calls under the aws provider by @arthi-arumugam-git in #2162
- Report failures from every force_flush pipeline by @alexmojaki in #2366
- Change OTel instrumentation scope of pydantic integration to
logfire.pydanticby @alexmojaki in #2369 - Let logfire.configure() finish project setup without a TTY by @strawgate in #2305
- Add LOGFIRE_BASE_URL support to Gateway CLI by @bruno-espino in #2323
- Refactor dataset retrieval and improve type inference by @alexmojaki in #2335
- Handle backend 413 responses for span exports by @Alphaxiaoteng in #2338
- Skip the Logfire token check inside AWS Lambda by @reidemeister94 in #2345