Skip to content
AgenticAIWiki
  1. Learn
  2. Part 13
  3. 67. Observability and tracing
  4. 67.8

Lesson 67.8 · 8 of 9 · 5 min read · Reviewed 24 Nov 2026

Tracing tools: LangSmith, Phoenix, Langfuse and others

By the end, you can

  • Compare the main kinds of LLM tracing tool.
  • Choose a tracing tool from your data, framework and team constraints.

Once your agentAgent: A system where a model decides its own next steps, calling tools in a loop until the task is done. produces tracesTrace: A record of everything that happened during one request or agent run, as a tree of timed steps. (67.7), you need somewhere to read them. There are many options and they change fast, so learn the families and the questions, not a ranking.

The families

Family Examples Typical strengths
Framework-linked platform LangSmith (from the LangChain team) Deep integration with that framework, datasets and evals alongside traces
Open-source, self-hostable Langfuse, Arize Phoenix Run it in your own infrastructure; traces, evals and prompt management
Instrumentation libraries OpenLLMetry, OpenInference Produce OpenTelemetry spans for many SDKs and frameworks; you choose the backend
General APM and observability Datadog, Grafana, Honeycomb, cloud monitoring Your existing dashboards, alerts and on-call; many accept OTLP and now show LLM spans

The lines blur. Most LLMLarge language model (LLM): A neural network trained on large amounts of text to predict the next token, which lets it generate and transform language. tools now accept OpenTelemetryOpenTelemetry: An open standard and toolkit for collecting traces, metrics and logs from software. data, and most APM products have added LLM views. Several tools are usable with or without the framework they grew up with.

The questions that decide

  1. Where may trace data go? If prompts contain customer data, you may need self-hosting or a vendor region that matches your residencyData residency: A requirement that data is stored or processed in a particular country or region. promise (70.4, 66.3).
  2. What do you already run? If the team lives in one APM tool, adding LLM spans there may beat a new tool nobody checks.
  3. Which frameworks and SDKs? Check that instrumentation exists for what you use, or that you can add spans by hand.
  4. Do you want evalsEval: A repeatable test that measures how well an AI system performs on a set of cases with defined success criteria. in the same place? Some tools let you turn a trace into a test case and run gradersGrader: The part of an eval that decides whether an output passes, using code, a model or a person. on samples (67.4).
  5. Does it speak OpenTelemetry in and out? This is your escape hatch.
  6. Who pays to run it? Hosted means a bill; self-hosted means your team runs a database and upgrades.

A worked example

A team in the EU builds a support agent on LangGraph. Prompts include order details. Security says no customer text may leave their cloud account.

  • A hosted-only tool with no EU region is out.
  • They choose to instrument with OpenTelemetry (OpenInference or OpenLLMetry), run a Collector that redactsRedaction: Removing or masking sensitive data, such as PII or secrets, before it is stored, logged or sent. emails and card numbers, and export to a self-hosted open-source LLM tool for engineers.
  • The same Collector sends metadata only (timings, tokensToken: The unit a model reads and writes: a word, part of a word, a space or a symbol, mapped to an integer id., errors) to the company APM for on-call alerts.

If they outgrow the self-hosted tool, they change the exporter, not every span in the code.

Try before you commit

Run one real, redacted agent trace through two candidates for a week. Check:

  • Can you find a failed run in under a minute?
  • Do nested tool calls and retries show in the right order?
  • Are token counts and cost per span correct against the provider’s usage fields?
  • Can you filter by tenant, feature and prompt version?

Common mistakes

  • Picking by demo. Every tool looks good on a toy trace. Test with your messiest real run.
  • Locking in early with a tool-specific SDK everywhere in your code. Keep a thin wrapper or use OpenTelemetry.
  • Two tools, no owner. Decide which one on-call uses at 3 a.m.

Key points

  • Tracing tools fall into a few families: framework-linked platforms, open-source self-hostable tools, OpenTelemetry instrumentation libraries, and general APM products.
  • Decide first where trace data is allowed to go; that often rules out options before features matter.
  • Instrument with OpenTelemetry where you can, so switching tools later means changing an exporter, not your code.
Hands-on labOn your own machine

Trial two tracing tools on one trace

Compare two LLM tracing tools on the same real, redacted agent trace before choosing one.

You will have: A one-page comparison table with your answers to the four trial questions for each tool.

Steps

  1. Write down your hard constraints first: where trace data may go and who runs the tool.
  2. Start two candidates locally, for example Arize Phoenix and a self-hosted Langfuse, following their own install guides (Docker or pip).
  3. Instrument a small agent script with OpenTelemetry (for example OpenInference or OpenLLMetry) and send the same redacted trace to both; keep any API key in an environment variable.
  4. For each tool, time how long it takes to find a failed run and check nested retries display in order.
  5. Check token counts against the provider's usage fields and try filtering by tenant and prompt version.
  6. Fill in the table and note which tool on-call would use.

Done when

  • Both tools show the same trace with nested tool calls and the retry.
  • Token counts in each tool match the usage numbers in your script's output.
  • The table records a decision and the reason, including the data-location constraint.

Docs: Arize Phoenix (GitHub) · Langfuse documentation · OpenTelemetry semantic conventions for generative AI

Quick checkA bank must keep all prompt text inside its own network. Which question narrows the choice of tracing tool first?
How sure are you?
Pick an answer and how sure you are