· 4 min read
Langfuse: The Open-Source Observability Stack You Can Actually Self-Host
When the SaaS alternative gets killed in security review, this is the tracing platform you ship instead.
The Helm chart deployed cleanly on a Friday afternoon, which is the moment I stopped treating Langfuse as the open-source shrug I'd assumed it was. Postgres, ClickHouse, an ingest worker, a web tier. All running inside the cluster, no sales call to book, no compliance variance to file, no quarterly per-seat negotiation waiting six months out. The first traces from our agent landed in the dashboard inside the same hour the SDK went in. That deployment, on infrastructure where the SaaS alternative had been killed in security review two sprints earlier, is the reason this writeup exists at all.
Langfuse occupies a specific lane in the LLM observability market. It is the open-source alternative to LangSmith, built deliberately as the platform you can run yourself when the hosted option is off the table. The core is MIT-licensed, the deployment artifacts are first-class (Docker Compose for prototypes, Helm charts for production, Terraform modules for the major clouds), and the team has held the self-host story as a primary product surface rather than letting it rot the way most OSS-plus-hosted companies eventually do. That posture matters when the SaaS vendors are quietly gating self-host behind enterprise sales contact and "talk to us about pricing" pages.
The tracing layer is the part that has to work, and it does. Nested spans for model calls, tool invocations, and retrieval steps render in a hierarchy you can actually navigate. Token counts and latency sit at every level. The OTel-compatibility piece is genuine: traces produced via the OpenInference semantic conventions land in Langfuse the same way they land in any other OTel-aware backend, which means you can instrument once and route traces wherever you need them. That portability is the lock-in escape valve most teams underweight when they pick a platform.
Where the tracing experience trails the closed-source alternatives is dashboard polish and auto-instrumentation breadth. The Langfuse SDKs (Python, JS/TS) cover the big surfaces well: OpenAI, Anthropic, the major frameworks. The integration story for less common stacks involves more manual span instrumentation than you'd get from a LangSmith or Braintrust SDK that ships with broader framework hooks pre-wired. This is a real cost on the first integration, paid once. It is not a recurring cost once the tracing is in place.
The eval framework is where the picture gets honest. Langfuse supports dataset-driven evals, LLM-as-judge scoring, custom Python and TypeScript scorers, and experiment tracking against prompt versions. The primitives are all there. What you do not get is the experiment-as-product experience that Braintrust has spent years polishing, or the YAML-and-CI ergonomics that Promptfoo nails. If your team treats evals as a daily ritual that drives every prompt and model change, you will feel the gap. If your team treats evals as a periodic regression backstop, the Langfuse eval surface is more than sufficient and it integrates with the trace data you already have.
Prompt management is the quietest strength. Versioning, rollback, A/B testing, and a deployment surface that lets you swap prompts in production without redeploying code. The Hub-style workflow that LangSmith popularized has a near-equivalent inside Langfuse, and it lives next to the trace data, which is the integration win. Bisecting a quality regression to a specific prompt version is a click rather than a Git archaeology session, and the prompts can be governed by the same review process as code if you wire them through the API.
The self-host story is what closes the deal, and it is worth being precise about what that buys you in practice. ClickHouse handles the trace events at high volume, Postgres holds the metadata, prompts, and dataset state. The whole thing scales horizontally on Kubernetes the way a modern SaaS product does, which is the correct architectural choice and one that most "open source" observability tools quietly punt on. Backup and restore is operationally normal, and upgrades are version-pinned container rolls. If you have a platform team that runs anything else in production, they can run this, and there is no licensing rug-pull waiting two product cycles out because the MIT core is the actual deployed software, not a feature-stripped community edition.
The honest comparison with LangSmith is the one most teams will end up making. LangSmith is more polished, more integrated end-to-end, and noticeably stronger on eval workflows specifically. The pricing scales steeply with trace volume, the self-host option requires sales engagement, and the SDK culture still leans LangChain-native even after the OTel work last year. Langfuse is rougher on UX, the eval surface is good rather than great, and the auto-instrumentation depth lags. The pricing scales with trace volume on the hosted tier and is free on self-host, the deployment is genuinely open, and the SDK culture was framework-agnostic from the start. The decision is not which one is better in the abstract. It is whether you optimize for integration polish or for data sovereignty, and which of those your security and finance teams will accept as the operating cost.
The places I have watched Langfuse lose are predictable. Eval-first teams that want pairwise experimentation and dataset versioning as the daily centerpiece pick Braintrust. CI-first teams that want prompt regressions to fail builds pick Promptfoo. Teams already deep in the closed-source observability ecosystem stay there because the integration cost of switching outruns the licensing savings.
The places I have watched Langfuse win are also predictable. Regulated industries where data residency is a real constraint pick it. Teams with a strong platform engineering function pick it. Teams that have already been burned by a SaaS observability bill creeping into five figures pick it after the renewal conversation.
The failure modes are worth naming honestly. The default Docker Compose setup is fine for prototypes and quietly inadequate for production: you need the Helm path, the ClickHouse sizing right, and a clear operational owner. The SDK auto-instrumentation for newer frameworks lags by a release or two compared to what LangSmith ships day-one. The eval dashboard is functional rather than delightful, and pairwise experiment workflows feel newer than they are. None of these are blockers; all of them are the price of the open-source advantage that the rest of the product earns.
This is the tool I would recommend first when the constraint is "we cannot ship traces to a vendor." It is the tool I would recommend second when the constraint is "we need the most polished integrated experience" and LangSmith would be the first. It is the tool I would recommend not at all if your team has never operated a stateful service in Kubernetes and does not intend to start. The self-host advantage is real and it is not free. The cost is a platform team that can carry the operational weight, and the reward is observability infrastructure that nobody can charge you more for next quarter because they noticed you crossed a trace threshold.