PrefactorvsLangSmithvsLogfire

LangSmith vs Logfire: how to choose

Both trace agents, run offline and online evals, version prompts and offer a gateway for model calls. LangSmith goes deeper on the agent loop for LangChain and LangGraph teams; Logfire puts agent traces in the same OpenTelemetry view as the rest of a Python application, priced on records rather than seats.[1][4]

support-agent v4 · one run, two layersexample
Illustrative run, showing what each layer tells you
LangSmith / Logfiresee
fetch_customer212ms · 1.2k tok
apply_refund1.4s · 3.1k tok
send_reply340ms · 0.8k tok
trace recorded, no verdict
Prefactoradds
Did its job✓ yes
Quality84 / 100
Cost$0.42 · in budget
Drift vs baselinenone
✓ a run that breaches its schema is held for review
§01 / THE SHORT ANSWERtl;dr: which, and when
TL;DR

What is the difference between LangSmith and Logfire?

LangSmith is LangChain's platform focused on the agent development loop, while Pydantic Logfire is an OpenTelemetry observability platform that traces your whole application, HTTP, database and agent calls, with evals, prompt versioning and an AI gateway built in. LangSmith fits LangChain teams; Logfire fits Python teams, especially on Pydantic AI. Both are independent and both reserve self-hosting for Enterprise.

The short answer

At a glance (checked 20 October 2026)

Decision factorLangSmithLogfire
OwnershipLangChain, independent; $125M Series B in October 2025Pydantic, independent; $12.5M Series A led by Sequoia in 2024
What it tracesLLM and agent runs, threads and subagent trajectoriesThe whole application: HTTP, database, LLM and agent spans
Online evalsRun by LangSmith through automation rulesRun in your application with pydantic-evals, then reported to Logfire
Human reviewAnnotation queues with rubrics and assigned reviewersRun annotations in Beta; queues are early-access
GatewayLLM Gateway (beta): spend caps, model access, redactionAI gateway: guardrails that can flag, redact or block, spend caps, failover
Self-hostingEnterprise add-on on Kubernetes; BYOC also EnterpriseEnterprise only, Kubernetes via Helm
Free tierDeveloper: 1 seat, 5k base traces a month, 14-day retentionPersonal: 1 seat, 10M records a month, 30-day retention
First paid tierPlus: $39 per seat a month, 10k base tracesTeam: $49 a month, 5 seats, 10M records, then $2 per million
§02 / CAPABILITY MATRIXside by side: what each covers
Side by side

LangSmith vs Logfire: capabilities side by side

CapabilityLangSmithLogfirePrefactor
Observe
LLM call tracing✓✓✓
Multi-step agent tracing (tool calls, nested spans)✓✓✓
Cost tracking✓✓✓
OpenTelemetry support✓✓✓
Evaluate
Offline evals (datasets, experiments)✓✓✓
Online evals on production traffic✓✓✓
LLM-as-a-judge scoring✓✓✓
Code-based evaluators✓✓✓
Human review and annotation✓Partial✓
Prompt versioning and playground✓✓—
Act on findings
Runtime controls on live agent actionsPartialPartial✓
Gateway or proxy in the request path—✓—
Licence and deployment
Open sourcePartialPartialPartial
Self-hosting✓PartialPartial
§03 / IN DEPTHdetail: the reasoning
In depth

An agent view, or the whole application

Logfire is general observability on OpenTelemetry, recording the HTTP requests, database queries and background work around an agent in the same trace as its model and tool calls, while LangSmith traces LLM and agent work and does not try to replace your application monitoring.

Read more

Logfire comes from the team behind Pydantic, is Python-first and accepts any standard OpenTelemetry SDK. LangSmith offers threads, a Trajectory view across subagents, deep LangChain and LangGraph integration, and SDKs for Python, TypeScript, Go and Java.

Where evaluation runs

LangSmith runs online evaluators itself, through automation rules with filters and sampling, including on multi-turn threads, while Logfire's live evaluations run inside your application through the open-source pydantic-evals library. That keeps judge calls and their cost in your own code and accounts, but your service does the work.

Read more

Logfire's run annotations are in Beta and annotation queues are early access, while LangSmith routes flagged runs to annotation queues for reviewers. Prompt versioning is close on both, with versions promoted by labels or tags.

Two gateways for model calls

Both now offer an optional gateway for model calls with spend caps and redaction, but neither covers an agent's tool calls or documents approvals on agent actions. LangChain describes tool and MCP gateways as planned.

Read more

Logfire's gateway, the Pydantic AI Gateway folded into Logfire in March 2026, adds failover and load balancing across providers and guardrails that observe, flag, redact or block secrets and personal data, on cloud and self-hosted Logfire. LangSmith's LLM Gateway, in public beta since 30 July 2026, adds model access policies, with custom regex rules from October 2026.

Pricing shape

As of 20 October 2026, LangSmith charges per seat plus traces: free for one seat and 5k base traces a month, then Plus at $39 per seat a month with 10k base traces and an unpublished overage rate. Logfire charges on records (spans, logs and metrics): Personal is free for one seat and 10M records a month, Team is $49 a month with five seats and 10M records, Growth is $249 a month with unlimited seats, and extra records cost $2 per million.

Read more

Logfire counts every application span, so estimate your full volume. Retention is 30 days on Logfire Personal and Team and up to 90 days on Growth, against 14 days for LangSmith base traces, extendable to 180 days, and Logfire lets you set a spending cap on paid plans. Check LangSmith's pricing and Logfire's pricing against your own numbers.

§04 / THE QUALITY GAPour take: where it stops
Our take

Where Prefactor fits

We sell the layer this section describes. Read it with that in mind.

Stated plainly, since Prefactor publishes this page: Prefactor is an agent evaluation platform that scores each step of a run and acts on what it finds through runtime policies on tool calls and data access, approval holds for risky actions, and a kill switch for a run, an agent or a team. Both LangSmith and Logfire act only on model calls routed through their gateways; neither holds a tool action for a person. Prefactor does not trace your wider application as Logfire does, has no prompt playground or prompt registry, and is hosted. See the full comparison of 15 platforms.

See it on your own agents

A working session on a fleet like yours: watch a run evaluated, catch a drift, walk the record.

§05 / WHICH TO PICKdecide: by your stack
Which to pick

Which one fits

Pick LangSmith if

  • You build on LangChain, LangGraph or Deep Agents.
  • You want online evals run by the platform, not your service.
  • Annotation queues for human review are part of your process.
  • You work in TypeScript, Go or Java as well as Python.

Pick Logfire if

  • Your stack is Python, especially Pydantic AI.
  • You want agent traces in the same view as HTTP and database spans.
  • Record-based pricing with several seats included suits your team.
  • You want gateway guardrails that can block or redact model traffic.
§06 / HOW WE REVIEWEDsources: checked October 20, 2026
Methodology

How we reviewed this comparison

Reviewed against public product and documentation pages on October 20, 2026. If a vendor has changed a feature, product name, or positioning since then, send a correction and we will update it. Numbered source links in the page body point to the ordered sources below.

Methodology

  • Reviewed public product, documentation, and launch material visible at the time of writing.
  • Mapped each page to the primary buyer, control layer, and runtime capabilities each vendor describes publicly.
  • Prefer direct product and documentation pages over analyst summaries or reseller material.
§07 / QUESTIONSfaq: the common ones
Questions
What is the difference between LangSmith and Logfire?
LangSmith is LangChain's platform for tracing, evaluating and deploying agents, focused on the agent loop. Pydantic Logfire is an OpenTelemetry observability platform that traces the whole application, including agents, with evals, prompt versioning and an AI gateway built in.
How does Prefactor compare with LangSmith and Logfire?
Prefactor is an agent evaluation platform for teams building AI agents: it observes every agent run from development to production, evaluates whether the agent did its job, and shows how to improve it. As of 20 October 2026, Prefactor can block or hold a live agent action; LangSmith and Logfire do so in part. Prefactor supports human review and annotation; LangSmith does too and Logfire does so in part. LangSmith and Logfire both include prompt versioning and a playground. Prefactor evaluates how prompts perform in live runs rather than providing a prompt playground or registry.
Which suits a Pydantic AI project?
Logfire, in most cases. It comes from the same team as Pydantic AI and records agent runs next to the rest of your application. LangSmith also lists a Pydantic AI integration, so it is an option if you want LangSmith's eval and review workflow.
Can I send traces from other languages?
Yes, to both. Logfire accepts data from any standard OpenTelemetry SDK, including Go, Java, .NET and Ruby. LangSmith has SDKs for Python, TypeScript, Go and Java and also ingests OTLP.
Can I self-host LangSmith or Logfire?
Both on Enterprise only. Self-hosted LangSmith deploys on Kubernetes with Helm or Terraform, with a BYOC option. Self-hosted Logfire deploys on Kubernetes with Helm, PostgreSQL and object storage, and a dedicated single-tenant option runs in any GCP region.
Can I use both together?
Yes. Logfire accepts any OpenTelemetry data, and LangSmith's SDK can export to other OTel backends, so one set of spans can reach both. Some teams keep Logfire for application monitoring and LangSmith for evals, at the cost of two bills.
Who owns LangSmith?
As of 20 October 2026: LangChain, Inc., a privately held company that raised a $125M Series B at a $1.25B valuation in October 2025. No acquisition has been announced.
Is LangSmith open source?
Partly. The client SDKs are MIT-licensed and the LangChain frameworks are open source, but the LangSmith platform is proprietary. Self-hosting requires an Enterprise contract.
How much does LangSmith cost?
As of 20 October 2026: Developer is free for one seat and 5k base traces a month. Plus is $39 per seat a month with 10k base traces; the overage rate is not published. Enterprise is a custom annual contract.
Can LangSmith block or hold a live agent action?
Partly. The LLM Gateway, in public beta since July 2026, can cap spend, restrict models and redact personal data in model calls. It does not cover tool calls; LangChain describes tool and MCP gateways as planned.
Who owns Logfire?
As of 20 October 2026: Pydantic, the company behind the Pydantic library and Pydantic AI. It is independent and backed by Sequoia, which led its $12.5M Series A in 2024.
Is Logfire open source?
Partly. The SDKs, pydantic-evals and Pydantic AI are MIT-licensed; the Logfire platform is closed source. Self-hosting is Enterprise only.
How much does Logfire cost?
As of 20 October 2026: Personal is free with 10M records a month. Team is $49 a month and Growth $249 a month, each with 10M records included, then $2 per extra million. Enterprise is custom.
Can Logfire block or hold a live agent action?
Partly. Model calls routed through its AI gateway can be flagged, redacted or blocked, and spend caps stop requests over budget. Tool actions outside the gateway are not covered.
Is Prefactor open source?
Partly. Its deterministic evals package is Apache-2.0; the platform is hosted.
How much does Prefactor cost?
As of 20 October 2026: Dev is free with 5,000 spans a month. Startup is $49 a month and Scaleup $199 a month. Enterprise is custom above 4 million spans a month.
Can Prefactor block or hold a live agent action?
Yes. Runtime policies can block, throttle, sandbox or escalate an agent's tool calls and data access before they run, approval routing holds risky actions for a person, and a kill switch stops a run, an agent or a team.
Reviewed against public sources on October 20, 2026Suggest a correction

Score the run, then act on it

Prefactor scores each step of every agent run and can hold or stop an action when a score says it should not happen. Start on the free tier: 5,000 spans a month, no credit card required.

Agent Performance Platform
Unified performance platform for agents, authentication, and risk management
All Systems Operational
3Global Agents
7Instances
5Services
12%Human Intervene
4High Risk
$2,360Monthly Spend
Mission ControlLive agent health with 7-day activity heartbeat
Claims Proc...68
$330/moRed
Claims Proc...65
$160/moRed
Claims Proc...82
$170/moAmber
ChatGPT74
$150/moAmber

See how every agent performs, and make it better

Prefactor helps teams observe, evaluate, and improve their AI agents in production, across every framework and provider.