Back to stack index

Observability

Langfuse

Open LLM engineering and trace store.

Short answer

Langfuse is an open-source platform for LLM observability: it records traces of every model call, tool call and retrieval step in an AI app, tracks cost and latency, manages prompt versions, and runs evaluations. Langfuse v4 became generally available on Langfuse Cloud and for self-hosting on August 17, 2026. The self-hosted core is free under the MIT license. Langfuse Cloud has a free Hobby plan with 50,000 units a month, 30 days of data access and two users; Core at $29 a month with 100,000 units and $8 per additional 100,000; Pro at $199 a month; and Enterprise at $2,499 a month. Self-hosting needs PostgreSQL, ClickHouse, Redis and S3-compatible storage. Other open-source tools in this category, all in our directory, are Helicone, a proxy-based gateway and logger; OpenLIT and OpenLLMetry, which instrument apps with OpenTelemetry; and LangWatch, which focuses on evaluations and agent testing.

Langfuse v4 GA
August 17, 2026 (Cloud and self-hosted)
Langfuse changelog
License
MIT for the self-hosted core
Langfuse GitHub
Cloud pricing
Hobby free; Core $29; Pro $199; Enterprise $2,499 per month
langfuse.com/pricing
Directory tools
Langfuse, Helicone, OpenLIT, OpenLLMetry, LangWatch
Project repositories

Updated October 21, 2026How we evaluate tools

Official site

Directory projects (5)

  • Langfuse

    Open LLM engineering hub for traces, prompts, scores, and datasets.

  • Helicone

    Logging proxy that surfaces cost, latency, and error rates per route.

  • OpenLIT

    Telemetry for GenAI apps with dashboards for cost and quality drift.

  • OpenLLMetry

    OpenTelemetry instrumentation tailored to LLM and vector DB calls.

  • LangWatch

    Simulation-style tests for agents before you ship prompt changes.

Langfuse and open-source LLM observability: tracing, evaluation and prompt management with Langfuse, Helicone, OpenLIT and LangWatch in 2026

Why AI apps need their own observability

Ordinary application monitoring shows that a request took four seconds and returned 200. It does not show that the model ignored the retrieved document, that a tool was called with the wrong argument, or that one user's long conversations cost ten times the average. LLM observability tools record the content and structure of each request so you can answer those questions.

A trace typically contains:

ElementExample
GenerationA model call with prompt, reply, model name, tokens and cost
SpanA step such as retrieval, reranking or a tool call, with inputs and outputs
ScoreA quality rating from a user, a human reviewer or an automated evaluator
MetadataUser ID, session ID, prompt version, environment, tags

Which directory projects fit here

ProjectApproachLicense
LangfuseSDKs and OpenTelemetry; tracing, prompts, evaluations, datasetsMIT core
HeliconeProxy gateway that logs every request; caching, rate limitsApache 2.0
OpenLITOpenTelemetry-native instrumentation plus a dashboard, including GPU metricsApache 2.0
OpenLLMetryOpenTelemetry instrumentation libraries from Traceloop, send anywhereApache 2.0
LangWatchEvaluations, agent simulations and monitoringSee repository

Arize Phoenix is another popular open-source option for tracing and evaluation, covered on the OpenTelemetry stack page.

Langfuse v4

Langfuse v4 reached general availability on Langfuse Cloud and for self-hosted deployments on August 17, 2026. The day after, Langfuse added cost tracking for OpenAI's fast mode. Langfuse's architecture since v3 splits data between PostgreSQL for transactional records such as projects, users and prompts, and ClickHouse for high-volume traces and observations, with Redis queues and S3 storage for ingestion. That design lets self-hosted installs handle millions of traces a day.

Core features:

  • Tracing through Python and TypeScript SDKs, OpenTelemetry, and integrations with LangChain, LlamaIndex, the OpenAI SDK, the Vercel AI SDK, LiteLLM, Dify, Flowise and many agent frameworks.
  • Prompt management with versions, labels such as production, and caching in the SDK so prompt fetches add no latency.
  • Evaluations using LLM-as-a-judge, custom code, human annotation queues and user feedback.
  • Datasets and experiments for testing prompt or model changes against fixed examples before release.
  • Dashboards for cost, latency, usage and quality by user, model, prompt version or feature.

Langfuse Cloud pricing

PlanPrice per monthIncluded
HobbyFree50,000 units, 30 days of data access, 2 users
Core$29100,000 units, then $8 per 100,000
Pro$199Longer retention, higher limits, more features
Enterprise$2,499Security and compliance features, support

Self-hosting the MIT-licensed core costs nothing in license fees.

Self-hosting Langfuse

ComponentRoleManaged option
Langfuse webUI and APIContainer
Langfuse workerProcesses ingested eventsContainer
PostgreSQLProjects, users, promptsRDS, Cloud SQL, Supabase
ClickHouseTraces and observationsClickHouse Cloud
Redis or ValkeyQueues and cacheElastiCache, Memorystore
S3-compatible storageRaw events and mediaS3, GCS, MinIO, R2

For trials, the Docker Compose file runs everything on one machine with 4 vCPUs and 16 GB of RAM. For production, use the Helm chart or Terraform modules and managed databases; see the Kubernetes stack page. ClickHouse is the component that needs the most attention, as it grows with trace volume.

What to trace and alert on

SignalWhy
Cost per user and per featureCatch abuse and unprofitable features
Latency to first token and totalUser experience; slow tools or retrieval
Error and refusal ratesProvider outages, broken prompts, safety filters
Retrieval quality scoresWhether RAG finds the right passages
Tool call failuresAgent reliability
Evaluation scores by prompt versionDetect regressions after changes

Privacy and data handling

Traces contain user prompts and model outputs, which may include personal or confidential data. Set retention periods, mask sensitive fields in the SDK before sending, restrict who can view traces, and self-host if data must stay in your infrastructure. Langfuse supports data masking functions and project-level access controls.

Helicone, OpenLIT, OpenLLMetry and LangWatch

Helicone sits between your app and the model provider. Change the base URL and add a header, and every request is logged with cost and latency, with optional caching, retries and rate limits. It is the fastest way to see what an app spends.

OpenLLMetry is a set of OpenTelemetry instrumentations for model SDKs, vector databases and frameworks. It sends standard traces to any OpenTelemetry backend, including Langfuse, Datadog, Grafana or Honeycomb.

OpenLIT combines OpenTelemetry instrumentation with its own dashboard and adds GPU monitoring, prompt management and evaluations, useful for teams running models themselves.

LangWatch focuses on quality: evaluations, guardrails and simulated conversations that test agents against scenarios before release.

Setting up evaluations that mean something

Evaluations are where most teams stall. A workable sequence:

  1. Collect real failures first. Read 50 to 100 traces, including ones users rated badly, and write down the failure types you see, such as wrong facts, ignored instructions, missing citations or slow tool loops.
  2. Build a dataset from them. Save the inputs of those traces as a Langfuse dataset, with the expected output or a short note on what a good answer must contain.
  3. Write one evaluator per failure type. An LLM-as-a-judge prompt that checks for one thing, such as "does the answer cite a retrieved document", is more reliable than a general quality score.
  4. Run experiments before each release. When you change a prompt or model, run the dataset and compare scores against the previous version.
  5. Sample production. Run the same evaluators on a percentage of live traces to catch drift that the dataset misses.

Check evaluator agreement against your own judgment on a few dozen examples before trusting the numbers.

Choosing a tool

NeedGood fit
Quick cost logging with no code changesHelicone
Deep traces of agents and RAG, prompt managementLangfuse
Existing OpenTelemetry setupOpenLLMetry or OpenLIT, sending to your current backend or Langfuse
Agent testing and evaluation workflowsLangWatch or Langfuse
GPU and self-hosted model monitoringOpenLIT

Getting started in an afternoon

  1. Sign up for Langfuse Cloud's free plan or start the Docker Compose stack.
  2. Install the SDK and wrap your model client, or add the integration for your framework.
  3. Pass a user ID and session ID with each trace so you can filter by customer and conversation.
  4. Move your main prompt into Langfuse prompt management and label it production.
  5. Add a thumbs-up and thumbs-down button in your app that sends a score to the trace.
  6. Build a dashboard for cost and latency, and review the lowest-scored traces each week.

Related: OpenTelemetry stack, LiteLLM stack, PostgreSQL stack, Redis stack, PostHog stack, Stack index.

Frequently asked questions

What is LLM observability?

Recording what an AI app does on each request: the prompt, the model's reply, tool calls, retrieved documents, token counts, cost, latency and errors, linked together as a trace. It lets teams debug wrong answers, find slow or expensive steps, and measure quality over time with evaluations.

Is Langfuse free to self-host?

Yes. The core platform is MIT-licensed and free to run with no usage limits. Some enterprise features, such as advanced access controls and audit logs, need a commercial license. You pay for the servers and databases it runs on.

What is a unit in Langfuse pricing?

A unit is an ingested tracing object, such as a trace, an observation like a model call or span, or a score. A single chat request that makes one retrieval and two model calls might create four or five units.

Should I use Langfuse or Helicone?

Helicone works as a proxy: change your model API base URL and every request is logged, with caching and rate limits included. Langfuse works through SDKs and OpenTelemetry, capturing whole multi-step traces, prompt versions and evaluations. Use Helicone for the quickest setup and gateway features; use Langfuse for deep tracing of agents and RAG pipelines. Some teams use both.

Does Langfuse work with OpenTelemetry?

Yes. Langfuse accepts OpenTelemetry traces, so apps instrumented with OpenLLMetry, OpenLIT or framework-native OpenTelemetry can send data to it without the Langfuse SDK.

Sources

  1. Langfuse changelog
  2. Langfuse pricing
  3. Langfuse self-hosting
  4. Langfuse on GitHub