This Langfuse review looks at how the platform helps you debug an AI agent, turn failures into regression tests, and estimate the cost of keeping those records. Langfuse is a good candidate if your team needs to inspect model calls and tool steps across several frameworks or run the observability stack on its own infrastructure. The main tradeoffs are how much instrumentation you need, what you can safely record, and how quickly deeply nested traces use up your cloud allowance.
ClickHouse announced the Langfuse AI Gateway public beta on November 9, 2026. That gives teams another way to capture model usage. The buying decision still starts with one question about your own application. When an agent gives a bad answer, can you find the step that caused it? This review draws on public documentation and pricing checked November 15, 2026.
Langfuse Review for AI Agent Tracing
Langfuse records a request or operation as a trace. Individual steps, such as model calls, document retrieval, and tool execution, are observations. You can nest observations to show their relationship and group traces into a session to follow a conversation across turns. Langfuse's Python and JavaScript SDKs use OpenTelemetry, so teams using compatible instrumentation can work from an existing tracing setup.
Suppose a support agent answers a returns question using an outdated policy. A trace can show which documents the retriever returned, which model and prompt version used them, and whether a retry added latency. If the correct policy never entered the context, investigate retrieval first. If it was included alongside older versions, check document ranking and how the prompt tells the model to resolve conflicting policy text.
Choose a trace boundary that matches how you debug the application. One trace per support turn makes it easier to compare latency and outcomes. A shared session ID lets you follow handoffs across turns. For workflows that pause for approval or resume after a failure, SD's LangGraph review explains why the execution and persistence model matters when you decide what to instrument. Start with the steps you need to diagnose a failure. Retain enough identifiers to tell whether a slow tool call was repeated or whether two separate calls happened to share the same name.
Instrument the boundary between services as well as the call itself. If the agent sends a lookup to a separate worker, propagate the trace context through that hop. Otherwise a successful lookup can appear as an unrelated trace and leave the agent run looking incomplete. During the pilot, open one known request end to end and confirm that the retrieved document ID, final answer, and error status are visible where you expect them.
How Langfuse Turns Failures Into Evals
Langfuse supports offline dataset experiments and online evaluation. Offline experiments let you rerun examples against a candidate prompt, model, or retrieval change. Online rules can sample matching production observations for scoring. Use versioned prompts or record the version in trace metadata so you can tie a change in results to the version that produced them.
For the returns agent, build a dataset from sanitized examples that include a current policy, an obsolete policy, a missing answer, and a case that requires a human to intervene. A code check can verify that the answer cites a permitted policy ID. A human reviewer can judge whether the answer explained the exception correctly. A model judge can help grade responses at volume once you have compared its decisions against human labels for representative cases.
Keep the dataset and evaluators fixed while you change one part of the workflow. A better average score may hide a regression on requests that need escalation. Review those failures individually and compare their traces. If the failures share a document version or a retrieval filter, inspect that part of the stack. SD's LlamaIndex review covers the ingestion and retrieval decisions that can produce this kind of recurring failure.
Langfuse Pricing and Self-Hosting
Langfuse Cloud bills by stored units. Every trace, observation, and score contributes to the total. As an example, 20,000 requests with one trace, six observations, and one score each would produce 160,000 units if you store them all. Retries can add observations, and online evaluations or annotation can add scores. Track the actual mix from your pilot before forecasting production costs. The average can be misleading if a few workflows loop through many more steps. Break down units by workflow and compare routine requests with requests that trigger retries or use several tools. That gives you a better basis for deciding where deeper traces justify the extra storage.
Langfuse's published Cloud pricing lists Hobby at no charge with 50,000 units per month, two users, and 30 days of data access. Core starts at $29 a month with 100,000 units, unlimited users, and 90 days of data access. Pro starts at $199 a month and lists three years of data access. Both paid plans list $8 per additional 100,000 units at the starting overage rate, with volume discounts. Model provider charges for your application or evaluator calls belong in a separate budget line.
The core self-hosted platform is MIT-licensed, with no per-unit software charge. You run the web app and worker, PostgreSQL, ClickHouse, Redis or Valkey, and object storage. Docker Compose is suitable for trying the stack, and the vendor documents Kubernetes and cloud deployment paths for production. Budget for storage growth, upgrades, backups, and recovery drills. Langfuse lists features such as audit logs and project-level role-based access under self-hosted Enterprise, so check your governance requirements before choosing the open-source deployment.
Langfuse vs LangSmith
Both products offer tracing, datasets, and evaluation. Langfuse is a strong starting point for a mixed stack or for teams evaluating self-hosting through an open-source deployment. LangSmith deserves a look if your team already uses LangChain or LangGraph and wants to test observability alongside LangSmith's agent development and hosting tools. LangChain documents self-hosting as an Enterprise add-on.
For a cost comparison, run the same workload in both products with the access window you actually need. Langfuse counts each stored step and score. LangSmith's published cloud pricing accounts for seats and traces and distinguishes base traces with 14 days of retention from extended traces with 180 days. Compare the cost of enough data to investigate a real incident, using the same assumptions for traffic, failure rates, and review volume.
What to Test Before You Adopt Langfuse
Instrument one workflow and send a small amount of staging traffic. Check that each failure can be traced to a specific observation, that nested steps have the expected parent, and that versions appear where reviewers need them. Use the billing dashboard to count the stored units per request. If you sample, keep a separate signal for rare failures so you can tell when a missing trace reflects sampling.
Use synthetic secret values and customer identifiers to test masking before exporting real data. Langfuse documents client-side masking, and each separate telemetry exporter needs its own validation. Check who can see the stored payloads and what an external model judge receives. SD's AI agent security guide covers adjacent controls for tool permissions and sensitive data during execution.
Test the new AI Gateway as a separate pilot if you want centralized model usage records. The public beta can record usage and cost without storing prompt content, and its full logging mode captures request and response content. Verify the configured mode with synthetic traffic and exercise provider timeouts before introducing the gateway to production. SDK instrumentation can still show app-side retrieval, validation, and tool steps that happen outside the gateway.
Conclusion
This Langfuse review points to a practical fit for teams that want traces, experiments, and prompt versions in one place, with a choice of managed cloud and self-hosting. Start with one agent and a handful of known failures. If the trace identifies the failing step and a repeatable eval shows whether your change fixed it, you have a basis for judging the platform. Use real unit counts and a verified data policy to decide how far to roll it out. If you already have an OpenTelemetry collector, include one existing exporter in the pilot and compare what each destination records. That will show which parts of your current setup you can reuse.
Written by
Theo Grant
Workflow Editor
Theo writes about repeatable AI workflows, automation patterns, and the gap between impressive demos and reliable daily systems.
FAQ
Is Langfuse free?
Langfuse Cloud has a free Hobby plan with limited units, users, and data access. You can also run the MIT-licensed core on your own infrastructure. Budget separately for hosting, maintenance, and any paid enterprise features.
Do I need the Langfuse AI Gateway to get traces?
You can send application traces through the SDK or OpenTelemetry instrumentation. The optional gateway routes model requests and can capture usage and content according to the configured logging mode.
Can Langfuse work with LangChain or LangGraph?
Yes. You can trace those workflows in Langfuse. In a pilot, check that nested tool calls, retrieval steps, and resumed graph runs show enough context for your team to diagnose failures.




