Skip to content

Failures with no errors · 6 of 8

The trace that kept the prompt

Step 1 · The pattern

Trace every model call

Every model call produces a trace: which model answered, tokens in and out, latency, finish reason (grey). Engineers use them to find slow calls and errors. The traces say nothing about what users wrote. (All numbers are illustrative.)

  • a chat
  • trace: metadata
  • answered

In short

The trace that kept the prompt: how it works and how it breaks

Tracing LLM calls is how teams debug them: which model answered, tokens, latency, which tool was called. The quickest way to understand a bad answer is to see the prompt and response, so content capture gets switched on, often everywhere and for good. Users type everything into chat boxes: names, addresses, health details, account numbers, pasted documents. Every prompt is now copied into a tracing system that many engineers can search, often run by a third party, keeping data far longer than the product does, with no error to show it. OWASP lists sensitive information disclosure among the top LLM risks, and the OpenTelemetry conventions for generative AI default to not capturing content. Keep that default, record metadata, redact at the gateway, and turn on capture only for specific routes, with consent and short retention.

What this simulation simplifies

  • Personal data is shown in every captured prompt; in reality it is in many, not all.
  • Redaction is shown as perfect; real redaction misses some cases, which is why capture should stay off by default.

How this comes up in interviews

"Design observability for an LLM feature without leaking user data."

Then they ask

  1. What do you record by default?
  2. When do you capture content?
  3. How long do you keep it?

A strong answer covers

  • Record metadata by default: model, tokens, latency, finish reason, tool calls.
  • Content capture off by default (OTel GenAI NO_CONTENT).
  • Redact at the gateway before anything is logged.
  • Opt-in, scoped, consented capture with short retention.
  • Treat traces as data stores with access control and retention rules.

Points to cover, not a script. Say them in your own words and tie them to a system you have worked on.

On one page: the track cheat sheet.

Last reviewed: Official documentation

Diagrams are our own simulations: the timings, rates and counts in them are illustrative, not measurements. Captions are original wording.