---
title: "Overview"
seoTitle: "LLM Observability & Application Tracing (Open Source)"
description: "Open source application tracing and observability for LLM apps. Capture traces, monitor latency, track costs, and debug issues across OpenAI, LangChain, LlamaIndex, and more."
---

# AI Observability & Application Tracing

Generative AI systems are inherently non-deterministic. Therefore, debugging your application without any observability tool is more like guesswork. Implementing comprehensive AI observability gives you the tools to understand what's happening inside your application and why. It also gives your evaluations real production traces to run on, so you can continuously measure and improve your system.

The core of this is **application tracing** — structured logs of every request that capture the exact prompt sent, the model's response, token usage, latency, and any tools or retrieval steps in between.

Here's an example of a trace in the Langfuse UI:

  ![Example of a trace in the Langfuse UI showing nested observations, timing, inputs, outputs, and metadata across a multi-step agent workflow.](/images/docs/tracing-overview.png)

[**Watch this walkthrough**](/watch-demo) of Langfuse Observability and how to integrate it with your application.

## Getting Started

Start by [setting up your first trace](/docs/observability/get-started), and compare it against our
[best practices guide](/docs/observability/best-practices) so you're set up for success. If you're new to AI observability, take a look at the [core concepts](/docs/observability/data-model) too.

**Start with Langfuse** [Sign up](/cloud)

## Use your traces [#sidebar-folder-docs-observability-features]

Once traces are coming in, the next step is to make sense of them and use what you learn to improve your agent. Read the chapter on [Monitoring in the Langfuse Academy](/academy/monitoring) to learn how to utilize your traces well.

For feature-specific implementation guidance, these are the most common ones to start with:

- Track [model usage and cost](/docs/observability/features/token-and-cost-tracking)
- Monitor application quality with [scores](/docs/evaluation/scores/overview)
- Analyze cost, latency, volume, and quality in [custom dashboards](/docs/metrics/features/custom-dashboards)
- Get notified when a metric crosses a threshold with [alerts](/docs/observability/features/alerts)

Browse the [Features section](#sidebar-folder-docs-observability-features) in the sidebar for a complete list of observability features.

## FAQ

### What is the difference between observability and tracing?

**Observability** is the broader capability of understanding the internal state of your system from its outputs. It encompasses tracing, metrics, and logging. **Tracing** is a specific observability technique that records the flow of a request through your system, preserving causal relationships between operations. In the context of LLM applications, tracing is the most important observability tool because it captures the full context of each request — prompts, responses, tool calls, and their relationships.

### What is application tracing?

Application tracing records the complete lifecycle of a request as it flows through your system. Each trace captures every operation — LLM calls, retrieval steps, tool executions, and custom logic — along with timing, inputs, outputs, and metadata. This gives you full visibility into what happened during each request, enabling debugging, performance optimization, and quality monitoring.

### How does Langfuse compare to other tracing solutions?

Langfuse is purpose-built for LLM applications, which means it natively understands LLM-specific concepts like token usage, model parameters, prompt/completion pairs, and evaluation scores. Unlike general-purpose APM tools, Langfuse provides features specific to AI engineering: [LLM-as-a-Judge evaluation](/docs/evaluation/evaluation-methods/llm-as-a-judge), [prompt management](/docs/prompt-management/overview), [experiments and datasets](/docs/evaluation/experiments/datasets), and [custom dashboards](/docs/metrics/features/custom-dashboards). It's also [open source](/self-hosting) and can be self-hosted.

### Does Langfuse add latency to my application?

No. Langfuse SDKs send tracing data asynchronously in the background. Trace events are queued locally and flushed in batches, so your application's response time is not affected. See [queuing and batching](/docs/observability/features/queuing-batching) for details.

[Ask another question](/docs/ask-ai)

<!-- agent-instructions -->

---

## Agent Instructions

This page is part of the [Langfuse](https://langfuse.com) documentation, published as plain Markdown for AI agents. Every page is available as Markdown by appending `.md` to its URL, or by sending an `Accept: text/markdown` header. This page: `https://langfuse.com/docs/observability/overview.md`.

### Querying these docs

If the answer is not on this page, query the documentation instead of guessing:

- **Semantic search** across all Langfuse docs, returning an answer with the relevant pages and excerpts. Ask a specific, self-contained question:

  ```bash
  curl -sG "https://langfuse.com/api/search-docs" --data-urlencode "query=How do I trace a LangGraph agent?"
  ```

- **Index of every page**: <https://langfuse.com/llms.txt>, with per-section indexes [llms-docs.txt](https://langfuse.com/llms-docs.txt), [llms-integrations.txt](https://langfuse.com/llms-integrations.txt), and [llms-self-hosting.txt](https://langfuse.com/llms-self-hosting.txt).

### Before writing Langfuse code

- **Install the [Langfuse Agent Skill](https://langfuse.com/docs/api-and-data-platform/features/agent-skill).** It encodes Langfuse's own best practices for instrumentation, prompt management, and evaluation, and materially improves results.
- **Read [What does a good trace look like?](https://langfuse.com/docs/observability/best-practices.md)** before instrumenting an application.
- **Verify endpoints, parameters, and response fields** against the [API reference](https://api.reference.langfuse.com) instead of inferring them from code examples.
- **Use the [Langfuse CLI](https://langfuse.com/docs/api-and-data-platform/features/cli)** (`npx @langfuse/cli api <resource> <action>`) to read or write traces, prompts, datasets, and scores from the terminal.

Found an error in these docs? Please open an issue at <https://github.com/langfuse/langfuse-docs/issues>.
