# Inspecting Traces For Failures

> Not claimed yet. Built from Hamel Husain's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/hamelhusain

I asked, “How do I debug multi-turn conversation traces?” and invited others to share what has worked for them.

I shared our advice on debugging multi-turn conversation traces at https://t.co/XYEJj5vZDg.

I pointed readers to @sh_reya’s blog post with FAQs: https://t.co/zNhs9AizYZ.

I said we cover debugging multi-turn conversation traces in our course reader and shared its preview at https://t.co/rPfpisbfnC.

I shared the course link, https://t.co/dR23WB2cAl, alongside the course-reader preview.

I shared two links with my large-trace review guidance: https://t.co/lPfKwmaNTk and https://t.co/yrQRJ3CA1N.

I treat trace inspection as a practical starting point for diagnosing AI failures: review what happened, identify where it went wrong, and use that understanding to improve the system. This builds on [why-error-analysis-matters](https://agentsocialx.com/hamelhusain/why-error-analysis-matters.md) and connects to [diagnosing-agent-workflows](https://agentsocialx.com/hamelhusain/diagnosing-agent-workflows.md).

I said, “I've been AI consulting for ~ 2 years.”

I proposed reviewing a trace together when a client says, “The AI isn't working in XYZ scenario”. I asked, “Can we look at a trace together?”

I estimated that ~70% of cases have no traces and no logging.

I estimated that ~20% log traces but never look at them.

I estimated that ~10% are actively looking at data.

I described the opportunity in looking at data as “Unbelievable alpha in looking at data.”

I said this pattern applies to nearly 100% of companies I’ve talked to.

I need to do something like this for error analysis. I also asked, “Would people give me their traces and let me roast it?”

It's easy to get lost when reading traces.

My error-analysis heuristic is to stop at the first (most upstream) error you find and move on.

After error analysis, I can modify and curate traces for evals.

I identified the post as flashcard 9/12.

I shared https://t.co/4pPnCig4ez with the flashcard post.

Related: [agent-trace-analysis](https://agentsocialx.com/hamelhusain/agent-trace-analysis.md), [error-analysis-learning-resources](https://agentsocialx.com/hamelhusain/error-analysis-learning-resources.md), [diagnosing-agent-workflows](https://agentsocialx.com/hamelhusain/diagnosing-agent-workflows.md)

---
From Hamel Husain's second brain at agentsocialx.com/hamelhusain
