Comparison
Langfuse vs Braintrust for Tracing and Evaluating AI Agents
Both trace agents, score them and version their prompts. One is open source and runs anywhere you can run containers; the other is a managed platform built around evals, with its own trace database and an option to keep data in your cloud.
By The Instrumented Agent Editors · Checked against Langfuse and Braintrust documentation on
The short answer
Langfuse is an open-source (MIT) LLM engineering platform you can use as a managed cloud or run yourself at no licence cost; it has been part of ClickHouse since January 2026. Braintrust is a commercial platform for tracing, evaluating and monitoring AI applications, built on its own trace database, Brainstore. It runs as SaaS on every plan, with bring-your-own-cloud (BYOC) on Enterprise; its SDKs and its Autoevals scorer library are open source, the platform is not.
If traces have to live in infrastructure you operate, or you want to read the code of the system holding them, Langfuse is the one that allows it without a sales conversation. If evaluation is the centre of the work (experiments in CI, online scorers on production traffic, human review) and you would rather not run a database for traces, Braintrust is the more complete managed option.
Langfuse and Braintrust at a glance
| Langfuse | Braintrust | |
|---|---|---|
| Made by | Langfuse, acquired by ClickHouse, Inc. in January 2026 | Braintrust Data, Inc. |
| Source code | Core platform open source under MIT; some enterprise features (audit logs, SCIM, retention policies) need a licence key when self-hosted | Proprietary platform; the SDKs (Apache-2.0) and Autoevals (MIT) are open source |
| Where it runs | Langfuse Cloud (EU, US, Japan and a HIPAA region), or self-hosted with Docker Compose, Kubernetes (Helm) or Terraform | SaaS on US or EU data planes on every plan; BYOC, with Braintrust operating the data plane in your cloud account, on Enterprise |
| What cloud usage is metered on | Billable units: every trace, every observation in it (spans, generations, events) and every score | Processed data (bytes ingested across logs, experiments and datasets, counted at ingestion) and scores, plus credits for built-in AI features |
| OpenTelemetry ingest | OTLP over HTTP (JSON or protobuf) at /api/public/otel; no gRPC. The Python and JS/TS SDKs are built on OpenTelemetry | OTLP at https://api.braintrust.dev/otel (api-eu for the EU data plane), with an x-bt-parent header naming the project; also a span processor for Python and TypeScript |
| Agent frameworks | SDK integrations and OpenTelemetry-based instrumentation; LangChain and LangGraph through a callback handler | SDK integrations for LangChain, LangGraph, the OpenAI Agents SDK, the Claude Agent SDK, CrewAI and others |
| Trace retention (cloud) | Data access window set by plan, from 30 days on the free plan up to 3 years; self-hosted keeps what you store | Logs 14 days on Starter, 30 days on Pro (extendable to 180 days for a storage charge), custom on Enterprise; experiments up to 365 days |
| Evaluation and prompts | Datasets, experiments, LLM-as-judge evaluators, annotation queues, prompt versioning with labels, playground | Experiments from code or CI, Autoevals and custom scorers, online scoring rules, human review, versioned prompts, playgrounds |
| Limit worth knowing | With raw OpenTelemetry, user, session, tags and metadata must be set on every span to filter by them | The logs view only shows traces that have a root span; send child spans alone and the trace doesn't appear |
How each one models an agent run
Both store an agent run as a tree. In Langfuse the root is a trace and every step under it is an observation: a span for a unit of work, a generation for a model call, an event for a point in time. Traces from one conversation are grouped into a session, and scores attach to a trace or an observation.
In Braintrust a trace is a root span with nested spans under it, logged to a project. Production traffic lands in the project's logs; offline runs land in experiments, each an immutable snapshot of one evaluation. Scores are recorded on spans, and an online scorer's run shows up as its own score span inside the trace it judged, so you can read what the scorer saw.
For a multi-step agent both shapes hold the plan, each model call, each tool call and each handoff as a child of the step that caused it. Whether a failure can be found in that tree depends more on your span design than on the backend; see span design for multi-step agentic pipelines.
Getting spans in with OpenTelemetry
Both accept OTLP over HTTP, so an agent already instrumented with OpenTelemetry can send to either with exporter settings alone. The details differ:
- Langfuse: set
OTEL_EXPORTER_OTLP_ENDPOINTto your region's/api/public/otelURL (or your own host's) and authenticate with HTTP Basic auth built from your public and secret keys. Add thex-langfuse-ingestion-version=4header; Langfuse's docs say spans sent without it can take up to 10 minutes to appear. A gRPC exporter has to be switched to HTTP. - Braintrust: set
OTEL_EXPORTER_OTLP_ENDPOINTtohttps://api.braintrust.dev/oteland sendAuthorization=Bearer <API key>plusx-bt-parent=project_id:<project ID>as headers. The parent can also be a project name, an experiment, or an exported span, which nests the OpenTelemetry trace under a Braintrust span. Use the EU host or your BYOC data plane URL where that applies. - Braintrust's span processor can drop non-AI spans before export (
filterAISpansin TypeScript,filter_ai_spansin Python), which matters when the same tracer also carries HTTP and database spans you'd otherwise pay to ingest.
Because both are OTLP backends, you can trial them side by side by fanning one span stream out through an OpenTelemetry Collector. Standardise the attributes first; OpenTelemetry GenAI semantic conventions for agent spans covers which ones.
What a long agent run costs to keep
The two clouds meter different things, and agents make the difference visible. Take one agent run whose trace holds 40 observations (spans for model calls, tool calls and handoffs) and is scored once by an evaluator:
- Langfuse counts it as 42 billable units: the trace, the 40 observations and the score. A span's size doesn't change the count.
- Braintrust counts the bytes of the whole run (inputs, outputs, prompts, metadata of all 40 spans) toward processed data, plus one score. Size is what matters: a run that passes long documents into every tool call weighs far more than one with short messages. Processed data is counted at ingestion, so deleting traces afterwards doesn't reduce it.
So many small spans weigh more on Langfuse's meter, and large payloads and heavy scoring weigh more on Braintrust's. Neither price is listed here because both change; put your own spans per run, payload size and runs per month into Langfuse's pricing calculator and Braintrust's usage calculator. If volume is the problem on either, sampling strategies for high-volume agent trace pipelines covers what to keep.
Self-hosting, BYOC and where trace data lives
Langfuse's open-source edition runs every core feature with no usage limit: two application containers (web and worker) on PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage, the same architecture as Langfuse Cloud. You operate and scale those stores yourself; a licence key adds enterprise features such as audit logs, data retention policies and SCIM.
Braintrust splits a control plane (UI, authentication, project and organisation metadata) from a data plane (traces, spans, datasets, prompt completions). With BYOC, an Enterprise option, the data plane runs in your cloud account while Braintrust still provisions, upgrades and operates it, and the control plane stays Braintrust-hosted. That keeps trace contents inside your boundary without your team running Brainstore, but it is not a deployment you run on your own. For two platforms you can run entirely yourself, see Langfuse vs Arize Phoenix.
If traces have to be kept as evidence, read audit logging for AI agents in regulated industries before choosing: retention defaults, who can delete a trace and which plan includes audit logs matter as much as where the data sits.
Evaluating what the traces show
Evaluation is where Braintrust puts its weight. Experiments run from code or the bt eval CLI, so a pull request can be gated on scores; online scoring rules run scorers on production traces in the background, scoped to a span or to a whole trace (a trace-scoped rule waits for the trace to go idle, which suits multi-step agents). Topics classifies logs by intent and issue, and Patterns looks for recurring problems across traces; both draw on Braintrust credits.
Langfuse covers the same core loop: datasets built from production traces, experiments that rerun them, LLM-as-judge evaluators that can score live traffic, and annotation queues for human review, all under the same MIT licence and hosting as the traces themselves.
Neither tool decides what a wrong answer looks like for your agent; that depends on what each span records. See span-level correctness signals that surface wrong answers in clean traces and, for grouping what the scorers flag, grouping recurring agent failures into actionable issues.
Which one to pick
Choose Langfuse if
- Traces must stay in infrastructure you operate, with no enterprise contract to get there
- You want to read, patch or audit the code of the system holding your traces
- Your runs carry large payloads, so a per-observation meter suits you better than a per-byte one
- You already run PostgreSQL and ClickHouse, or are happy to
Choose Braintrust if
- Evaluation is the main job: experiments in CI, online scorers on production traffic, human review
- You want a managed trace store and would rather not operate the databases behind it
- Your data must stay in your cloud account, but you want the vendor to run the data plane there (Enterprise BYOC)
- You want automatic classification of production logs and recurring-problem detection built in
Sources and where to check prices
- Langfuse: OpenTelemetry for LLM observability
- Langfuse: Pricing (Cloud) and billable units
- Langfuse: Self-hosted pricing
- Langfuse: Self-host Langfuse
- Langfuse: Langfuse joins ClickHouse
- Braintrust: Send OpenTelemetry traces and logs
- Braintrust: Plans and limits
- Braintrust: Pricing and usage calculator
- Braintrust: Deployment options (SaaS and BYOC)
- Braintrust: Data plane architecture
- Braintrust: Score production traces


