Glossary

What is Tracing?

In Turkish: İz kaydı (tracing) · Topic: Using AI

Recording every step a single user request passes through in an AI application, including model calls, searches and tool use, in order and in detail.

How does it work?

When the application receives a request, a trace begins. Each step, such as a knowledge-base search, a call to a language model or a tool run, is added to the trace as its own record. The record holds the input, output, duration, number of tokens used and any error. The steps are displayed as a tree, nested or in sequence. A developer finds out why an answer was wrong by walking through that tree step by step.

Why does it matter?

In agents and retrieval-based applications that involve several steps, the fault often sits in an intermediate step rather than in the final answer. Tracing makes that step visible. It is also a basic tool for understanding where cost and latency build up and for reproducing real user problems.

Example

When an assistant states the wrong refund policy, the trace shows that the wrong document was retrieved from the knowledge base, so the problem lies in the search step, not in the model.

FAQ

What is the difference between tracing and logging?

Logging keeps individual events as separate lines. Tracing links all the steps of one request into a single flow, which makes it easy to see how long each step took and where an error occurred.

Does tracing store user data?

Because it can record inputs and outputs, it may contain personal data. That is why sensitive information should be masked, access should be limited and a retention period should be set.

All terms