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:
| Element | Example |
|---|---|
| Generation | A model call with prompt, reply, model name, tokens and cost |
| Span | A step such as retrieval, reranking or a tool call, with inputs and outputs |
| Score | A quality rating from a user, a human reviewer or an automated evaluator |
| Metadata | User ID, session ID, prompt version, environment, tags |
Which directory projects fit here
| Project | Approach | License |
|---|---|---|
| Langfuse | SDKs and OpenTelemetry; tracing, prompts, evaluations, datasets | MIT core |
| Helicone | Proxy gateway that logs every request; caching, rate limits | Apache 2.0 |
| OpenLIT | OpenTelemetry-native instrumentation plus a dashboard, including GPU metrics | Apache 2.0 |
| OpenLLMetry | OpenTelemetry instrumentation libraries from Traceloop, send anywhere | Apache 2.0 |
| LangWatch | Evaluations, agent simulations and monitoring | See 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
| Plan | Price per month | Included |
|---|---|---|
| Hobby | Free | 50,000 units, 30 days of data access, 2 users |
| Core | $29 | 100,000 units, then $8 per 100,000 |
| Pro | $199 | Longer retention, higher limits, more features |
| Enterprise | $2,499 | Security and compliance features, support |
Self-hosting the MIT-licensed core costs nothing in license fees.
Self-hosting Langfuse
| Component | Role | Managed option |
|---|---|---|
| Langfuse web | UI and API | Container |
| Langfuse worker | Processes ingested events | Container |
| PostgreSQL | Projects, users, prompts | RDS, Cloud SQL, Supabase |
| ClickHouse | Traces and observations | ClickHouse Cloud |
| Redis or Valkey | Queues and cache | ElastiCache, Memorystore |
| S3-compatible storage | Raw events and media | S3, 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
| Signal | Why |
|---|---|
| Cost per user and per feature | Catch abuse and unprofitable features |
| Latency to first token and total | User experience; slow tools or retrieval |
| Error and refusal rates | Provider outages, broken prompts, safety filters |
| Retrieval quality scores | Whether RAG finds the right passages |
| Tool call failures | Agent reliability |
| Evaluation scores by prompt version | Detect 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:
- 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.
- 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.
- 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.
- Run experiments before each release. When you change a prompt or model, run the dataset and compare scores against the previous version.
- 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
| Need | Good fit |
|---|---|
| Quick cost logging with no code changes | Helicone |
| Deep traces of agents and RAG, prompt management | Langfuse |
| Existing OpenTelemetry setup | OpenLLMetry or OpenLIT, sending to your current backend or Langfuse |
| Agent testing and evaluation workflows | LangWatch or Langfuse |
| GPU and self-hosted model monitoring | OpenLIT |
Getting started in an afternoon
- Sign up for Langfuse Cloud's free plan or start the Docker Compose stack.
- Install the SDK and wrap your model client, or add the integration for your framework.
- Pass a user ID and session ID with each trace so you can filter by customer and conversation.
- Move your main prompt into Langfuse prompt management and label it
production. - Add a thumbs-up and thumbs-down button in your app that sends a score to the trace.
- 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.