Learn AI · Level 3 · Tech and tools · step 5 of 20 · word 3 of 4

What is tracing in AI apps?

Tracing records each step an AI app or agent took to produce an answer, such as the prompt, the documents it found and the tools it called, so people can see what went wrong.

Added 5 Nov 2026

In plain English

An AI app often does much more than send one question to a model. It may search documents, call tools, ask the model several times and combine the results. Tracing records each step it is set up to log, usually with its inputs, outputs, time taken and cost, like a flight recorder. When an answer is wrong, the trace can show where it went wrong.

An example

A support bot gives a customer the wrong refund policy. The trace shows that the search step found last year’s policy document, so the team fixes the search, not the prompt.

What to watch out for

Traces can contain everything users typed, including personal details. Teams need to decide who can see them, what gets hidden and how long they are kept. See how to tell if AI works.

Learn AI path · Level 3 · Tech and tools · step 5 of 20

Next wordRegression testing (for AI) →See all of level 3

← All terms