Full-stack observability and evaluation for AI apps
With Pydantic Logfire, traces find the problem, evals prove a change fixed it, and rollouts ship the fix without a deploy.
- 10m spans free every month
- No credit card needed
- Install in 3LOC
Set up Logfire with your coding agent:
From the team behind Pydantic Validation
+60K GitHub stars
- Pydantic 28.8k
- Pydantic AI 20.0k
- Monty 8.2k
- Logfire 4.5k
- 1BN+ monthly downloads
Trusted by every good Python developer, all FAANG companies and 20 of the 25 largest companies on NASDAQ.
Workflow
Loop engineering
- Learn more
Observe
See the model call, the tool it used and the query underneath, all in one trace.
- Learn more
Evaluate
Know whether a change made things better, with numbers, not vibes.
- Learn more
Optimize
Change a prompt, swap a model or roll a change back, without a deploy.
Architecture
However you built it, everything lands in one place
Native SDKs for Python, TypeScript and Rust. Standard OpenTelemetry for everything else. It all arrives in the same table, so one Postgres-compatible SQL query can span a trace, an eval result and a prompt version.
Key features
Everything you need to keep shipping
-
Read the guideMCP & coding agents
Your coding agent queries production in SQL, so it debugs from what happened, not from guesses.
-
See how alerts workDashboards & alerts
Dashboards out of the box and alerts on anything you can query: from an eval score slipping to a p99 doubling to spend spiking.
-
Find your frameworkIntegrations & OpenTelemetry
Native SDKs for Python, TypeScript and Rust, standard OTel for everything else, including hosts and Kubernetes.
-
Track your LLM costsCost tracking & sampling
See what every model and agent costs, then keep every error and slow trace and sample the rest.
-
How the Gateway worksAI Gateway
One endpoint, one key, every model, with spend caps per key, per person and per project.
-
See managed variablesFeature flags & managed variables
Change prompts, model settings or any Pydantic model without a redeploy. OpenFeature-compatible.
Pricing
10m spans a month, free forever
Then metered on what you send. No per-host fee, no per-seat charge for sending data, and no minimum commitment.
- Personal Free 10m spans a month, three projects
- Team and Growth Metered on volume, SSO, more retention
- Enterprise Single-tenant or self-hosted, BAA available
Alternatives
Compare Logfire with
- Logfire vs Braintrust Full-stack production improvement with $0 scores
- Logfire vs LangSmith 50-100x cheaper at scale
- Logfire vs Langfuse Full-stack vs LLM-only observability
- Logfire vs Arize AX App observability vs ML monitoring
- Logfire vs Datadog Agent traces without per-host pricing
- Logfire vs Sentry Whole-run tracing vs error monitoring
- Logfire vs SigNoz OpenTelemetry with AI built in
- Logfire vs Grafana Plain SQL vs three query languages
FAQs
What is AI observability, and why does it matter?
Standard monitoring tells you something failed. AI observability tells you why by tracing, debugging, and evaluating AI applications across LLM calls, the databases and tools they depend on, the costs and latencies they generate, and the outputs they produce. It matters because AI applications fail in ways traditional software doesn't: a model returns a plausible but wrong answer, a tool call misfires silently, costs spike from a retry loop. Without observability across the full-stack, you’re guessing and shipping AI you can’t debug. Logfire gives you the complete picture.
What is Logfire?
Logfire is a full-stack observability and evaluation platform for AI agents, built on OpenTelemetry and framework-agnostic. It traces the whole run from LLM calls, tool calls, database queries, APIs, and your own code, in one view, so you can debug, evaluate, and improve what your AI does in production. It's built by the team behind Pydantic, the most widely used data-validation library in Python, but neither Pydantic nor Python is required to use it.
Do I need to use Pydantic AI, or Python, to use Logfire?
No to both. Logfire is framework-agnostic and language-agnostic. It ingests standard OpenTelemetry, so it works with OpenAI, Anthropic, LangChain, LangGraph, LlamaIndex, CrewAI, the Vercel AI SDK, and any other stack that emits OTel. TypeScript and Node.js are first-class, with SDKs for Node, the browser, Next.js, and Cloudflare Workers, and any language with an OpenTelemetry SDK works, including Go, Java, .NET, Ruby, and Rust. Pydantic AI has the tightest integration because it's built by the same team, but it's a recommendation, not a requirement.
Does Logfire do evals, or just tracing?
Both. Logfire includes a full evaluation suite: build datasets from production traces, run experiments comparing a candidate against a baseline case by case, score with code assertions, LLM-as-a-judge rubrics, or human review, and run live evals against production traffic. Because eval results are stored as queryable telemetry, "did version 12 regress on refund questions" is a SQL query. Evaluation and observability share the same data, rather than being separate tools.
How is Logfire different from LangSmith, Langfuse, Braintrust, or Arize?
Two differences. First, Logfire is OpenTelemetry-native: the SDK is standard OTel, not a proprietary wrapper, so your instrumentation is portable from day one and the same code can send traces to Logfire or any OTel backend without changes. Second, Logfire traces your full application, not just the LLM layer. You see the database queries, tool calls, and API requests around your model calls in one unified view, so you don't run one tool for your app and another for your AI.
Can my coding agent query production telemetry?
Yes. Logfire stores traces as queryable data in standard PostgreSQL SQL, and its MCP server lets a coding agent like Claude Code or Cursor query production directly — asking why a call failed, which step was slow, what changed — so it debugs from what actually happened instead of guessing. Standard SQL and OpenTelemetry mean the agent doesn't have to learn a proprietary query language.
Can I self-host Logfire?
Yes. Self-hosting is available on the Enterprise plan, deployed in your own infrastructure. If you'd rather not use the hosted platform on other plans, the SDK is standard OpenTelemetry, so you can send your data to any OTel-compatible backend. Either way your instrumentation stays portable. OpenTelemetry is the anti-lock-in standard.
Is Logfire open source?
The Logfire SDK is open source under the MIT license and available on GitHub. It's a wrapper around the OpenTelemetry Python and TypeScript SDKs, so you can inspect it, fork it, or send data to any OTel-compatible backend. The hosted platform is the commercial product; the instrumentation you install is open.
Get started with Logfire for free
Sign up today and see your first trace in under 2 minutes
01 — Install
$ uv add logfire
Resolved 7 packages in 128ms
Installed 7 packages in 89ms
+ logfire 02 — Instrument
import logfire
logfire.configure()
logfire.info('Hello {name}', name='world') Free up to 10m spans per month No credit card needed