# logfire

> AI observability platform for production LLM and agent systems.

- **URL**: https://www.freshcrate.ai/projects/logfire
- **Author**: pydantic
- **Category**: AI Agents
- **Latest version**: `v4.35.0` (2026-06-02)
- **License**: MIT
- **Source**: https://github.com/pydantic/logfire
- **Homepage**: https://logfire.pydantic.dev/docs/
- **Language**: Python
- **GitHub**: 4,185 stars, 227 forks
- **Registry**: github
- **Tags**: `agent-observability`, `ai`, `ai-observability`, `ai-tools`, `evals`, `fastapi`, `llm-observability`, `logging`, `python`

## Description

AI observability platform for production LLM and agent systems.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v4.35.0` | 2026-06-02 | High | * Add support for new `/v2/query` endoint by @Viicos in [#1897](https://github.com/pydantic/logfire/pull/1897)    This introduces changes to the `LogfireQueryClient` (and its `AsyncLogfireQueryClient` async variant), that are backwards compatible.   However, a couple deprecations were introduced:   * The `query_json()` method was deprecated. Use `query_json_rows()` instead.   * Using the `query_json_rows()` / `query_arrow()` / `query_csv()` methods without providing a `min_timestamp` is dep |
| `v4.34.0` | 2026-05-26 | High | * Add `logfire.forward_export_request` and `forward_export_request_starlette` methods by @alexmojaki in [#1974](https://github.com/pydantic/logfire/pull/1974) * Forward telemetry in a separate thread by @alexmojaki in [#1973](https://github.com/pydantic/logfire/pull/1973) * Drop Python 3.9 support by @alexmojaki in [#1919](https://github.com/pydantic/logfire/pull/1919) * Managed variables: Propagate variable version in baggage alongside label by @dmontagu in [#1927](https://github.com/pydanti |
| `v4.33.0` | 2026-05-13 | High | CLI:  * feat: gateway cli command by @ddanielcruzz in [#1915](https://github.com/pydantic/logfire/pull/1915) * CLI: Use remote MCP server by @jirikuncar in [#1884](https://github.com/pydantic/logfire/pull/1884) * refactor: reuse AI tool MCP setup in prompt CLI by @ddanielcruzz in [#1921](https://github.com/pydantic/logfire/pull/1921) * Avoid raising error on `prompt` command without `--project` by @Kludex in [#1912](https://github.com/pydantic/logfire/pull/1912)  Integrations:  * Suppor |
| `v4.32.1` | 2026-04-15 | High | * Support OpenTelemetry SDK 1.40.0 by @alexmojaki in [#1861](https://github.com/pydantic/logfire/pull/1861) * Do row→column transformation client-side in query client by @adriangb in [#1862](https://github.com/pydantic/logfire/pull/1862) * Mark various genai attributes as safe from scrubbing by @alexmojaki in [#1863](https://github.com/pydantic/logfire/pull/1863) |
| `v4.32.0` | 2026-04-10 | High | * Add `push_dataset` helpers to the experimental API client by @dmontagu in [#1848](https://github.com/pydantic/logfire/pull/1848) |
| `v4.31.2` | 2026-04-10 | Medium | * fix: Show token badges for OpenAI streaming logs by @alexmojaki in [#1857](https://github.com/pydantic/logfire/pull/1857) * fix: OTel warning during tail sampling buffer replay by @cyberksh in [#1632](https://github.com/pydantic/logfire/pull/1632) |
| `v4.31.1` | 2026-04-09 | Medium | * Capture token usage and cost attributes in OpenAI streaming logs by @alexmojaki in [#1846](https://github.com/pydantic/logfire/pull/1846) * Capture token usage and cost attributes in Anthropic streaming logs by @alexmojaki in [#1850](https://github.com/pydantic/logfire/pull/1850) * Capture `operation.cost` for OpenAI embeddings by @alexmojaki in [#1843](https://github.com/pydantic/logfire/pull/1843) * Capture `gen_ai.usage.raw` for Anthropic by @alexmojaki in [#1847](https://github.com/pyda |
| `v4.31.0` | 2026-03-27 | Medium | * Add `logfire.instrument_claude_agent_sdk()` by @alexmojaki in [#1799](https://github.com/pydantic/logfire/pull/1799) * feat: add `logfire.url_from_eval(report)` method by @Kludex in [#1694](https://github.com/pydantic/logfire/pull/1694) * fix: include cached tokens in `gen_ai.usage.input_tokens` for Anthropic by @alexmojaki in [#1812](https://github.com/pydantic/logfire/pull/1812) * fix: handle bare MCP request types for fastmcp 3.x compatibility by @alexmojaki in [#1813](https://github.com |
| `v4.30.0` | 2026-03-23 | Medium | * Add `logfire auth logout` command by @ai-man-codes in [#1781](https://github.com/pydantic/logfire/pull/1781) * Remove Rich link styling from project URL output by @ameenalkhaldi in [#1784](https://github.com/pydantic/logfire/pull/1784) * Fix push_config() to push labels and versions by @dmontagu in [#1785](https://github.com/pydantic/logfire/pull/1785) * Merge `export_dataset` into `get_dataset` with `include_cases` parameter by @Kludex in [#1792](https://github.com/pydantic/logfire/pull/17 |
| `v4.29.0` | 2026-03-13 | Low | * Add `gen_ai.usage.raw` attribute to OpenAI Responses spans by @alexmojaki in [#1777](https://github.com/pydantic/logfire/pull/1777) |

## Citation

- HTML: https://www.freshcrate.ai/projects/logfire
- Markdown: https://www.freshcrate.ai/projects/logfire.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/logfire/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
