What to log, and what not to

Lesson 16 of 28 · Tracing and observability · 2 min Get the course to watch

A trace is most useful when it holds the real prompt and the real answer. Those are also the riskiest fields you will ever log. They may contain names, addresses, account details, or anything a customer types. You have to decide on purpose.

The rest of this lesson

  • Always safe to record
  • Content is opt in
  • Three patterns
  • Why the reference pattern wins in production
  • Redact before you write
  • Keep names low cardinality
  • The idea to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Evals, Observability and Guardrails for LLM Systems.