Article · LLM observability

LLM debugging: why text logs aren’t enough

Use a concrete failed run to see what structured traces add to an investigation.

Beginner-friendly8 minute readAI observability

A text log can tell you that a request started, a tool returned data, and the answer failed. It often cannot show which step changed the direction of the run, what evidence the next step received, or whether a slow request and a wrong request share the same cause.

Core idea: logs tell you what was printed; traces preserve the execution story that explains why it happened.

Example: the log says “success,” but the answer is wrong

Suppose a user asks, “Who owns the Acme Corp account?” A conventional log might look reasonable:

INFO request=acme-001 plan="CRM lookup"
INFO tool=weather_api status=200 duration_ms=700
INFO tool_output="Sunny, 20C in Phoenix"
ERROR final_answer="aborted due to wrong tool"

The log contains the important words, but the causal question is still hidden: did the planner choose the weather tool, did a router replace the planned tool, or did a retry send the request down the wrong branch? The lines also do not make it easy to connect the weather response to the final failure.

Download the sanitized trace used in this example to inspect the same evidence as structured data:

Download example trace JSON

1. See the run as a hierarchy

In TraceProbe, start with the run summary, then move into the phase timeline and reasoning graph. The parent run keeps the planner, tool call, tool result, and final output connected. That lets you ask “what happened immediately before this?” instead of searching unrelated log lines.

  • Summary tells you the outcome and failure count.
  • Phase Timeline shows ordering and duration.
  • Reasoning Graph shows the path from plan to decision to result.
  • Step Details exposes the input, output, status, and metadata for one event.

2. Separate latency from correctness

Use the timeline to answer two different questions. A slow run may have a 900 ms provider call but otherwise choose the right tools. An incorrect run may finish quickly while using the wrong tool. The distinction matters because increasing a timeout will not fix an incorrect selection, and rewriting a prompt will not fix a provider latency spike.

3. Preserve the causal sequence

For the Acme request, compare the plan with the next tool, then compare the tool output with the task. The selected weather tool is the first mismatch; the weather response and aborted final answer are consequences. TraceProbe keeps those relationships visible so the investigation ends with a testable hypothesis.

4. Compare a failed run with a healthy baseline

After changing the router or tool descriptions, rerun the same request and compare it with the failed trace. The repaired run should show the CRM tool, account-oriented arguments, a CRM result, and a grounded final answer. Compare the first divergence, not just whether the last line changed.

5. Keep sensitive content under control

Logs and traces can contain prompts, retrieved documents, arguments, and outputs. Redact or replace sensitive values before sharing examples. This downloadable trace uses synthetic data so readers can reproduce the investigation without exposing customer information.

Turn logs into an execution story.

TraceProbe helps you inspect timelines, decisions, tool calls, and run differences locally.

Get TraceProbe