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

This is the split that matters. Logfire is a general observability platform built on OpenTelemetry. It records the HTTP requests, database queries and background work around an agent in the same trace as the model and tool calls, with dedicated Agents and LLMs views on top. When an agent is slow because a downstream query is slow, you see both in one trace. Its richest auto-instrumentation and eval tooling are Python-first, and it comes from the team behind Pydantic and Pydantic AI.

Read more

LangSmith traces LLM and agent work: nested runs, threads for multi-turn sessions and a Trajectory view across subagents, opened to all users in September 2026. It does not try to replace your application monitoring. Its deepest integrations are with LangChain, LangGraph and Deep Agents, and it adds Engine, in public beta, which reads production traces and drafts fixes, and LangSmith Deployment for running agents.

Logfire's integration list is long: Pydantic AI, LangChain, LangGraph, LlamaIndex, CrewAI, AutoGen, Google ADK, Strands, Mastra, the Vercel AI SDK and more, and any standard OpenTelemetry SDK can send data. LangSmith covers many of the same agent frameworks, plus SDKs for Python, TypeScript, Go and Java.

Where evaluation runs

Both support datasets, experiments, LLM judges and code scorers. The difference is where online evals execute. LangSmith runs online evaluators itself, through automation rules with filters and sampling, including on multi-turn threads, and puts flagged runs into annotation queues for reviewers.

Read more

Logfire's live evaluations run inside your application through the open-source pydantic-evals library, in the background at a sample rate you set, and emit OpenTelemetry events that Logfire aggregates. That keeps judge calls and their cost in your own code and accounts, but it means your service does the work. Logfire's run annotations are in Beta and annotation queues are an early-access feature, so structured human review is less developed.

Prompt versioning is close on both. Logfire saves immutable prompt versions, tests them against saved scenarios and datasets, and promotes a version through labels with rollout targeting. LangSmith's Prompt and Context Hub uses commit-based versions and tags, with a playground.

Two gateways for model calls

Both vendors now sit optionally in the model-call path. Logfire's AI gateway, the Pydantic AI Gateway folded into Logfire in March 2026, routes to several providers with failover and load balancing, enforces spend caps, and runs guardrails that can observe, flag, redact or block prompts and completions containing secrets or personal data. LangSmith's LLM Gateway, in public beta since 30 July 2026, enforces spend caps, model access policies and redaction, with custom regex rules from October 2026.

Read more

Neither gateway covers an agent's tool calls, and neither documents approvals on agent actions. LangChain describes tool and MCP gateways as planned.

Logfire's gateway is offered on its cloud plans and on self-hosted Logfire, while LangSmith's is still in beta.

Pricing shape

As of 20 October 2026, LangSmith charges per seat plus traces: Developer is free for one seat and 5k base traces a month, and Plus is $39 per seat a month with 10k base traces, with the per-trace overage rate unpublished. Logfire charges on records, meaning 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

Because Logfire counts every span in the application, not only agent spans, estimate your full record volume. Check LangSmith's pricing and Logfire's pricing against your own numbers.

Retention differs: 30 days on Logfire's Personal and Team plans and up to 90 days on Growth, against 14 days for LangSmith base traces, with extended retention up to 180 days. Logfire also lets you set a spending cap on paid plans.

§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.

Sources reviewed

  1. LangSmith pricingChecked 2026-10-20.
  2. LangSmith documentation
  3. LangSmith website
  4. Logfire pricingChecked 2026-10-20.
  5. Logfire documentation
  6. Logfire website
  7. Prefactor platform
Prefactor context

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.