AI Observability

Learn to trace your LLM calls, understand their cost, and evaluate whether the outputs give users what they need.

Learn through a story

Tracing every LLM call, scoring what comes back, and seeing what users do with it.

Start reading

Watch the lesson

Traces and generations

Use a trace to see inside one AI request, work back from a bad answer to the bug, then check that the fix works.

All videos

AI Observability

Watch: Traces and generations

Use a trace to see inside one AI request, work back from a bad answer to the bug, then check that the fix works.

Learn with your agent

Learn with examples from your own product and data.

Have your coding agent build a learning path from your existing instrumentation and data.

Learn by doing

Explore a fully instrumented product.

Twig is a real website with a live playground for learning PostHog and exploring real code.

Explore Twig
  • $ai_tracelocal-trip-11.2s
  • $ai_generationRecommend a staytwig-fixture · 1.2s
  • $ai_tracelocal-trip-25s
  • $ai_generationRecommend a staytwig-fixture · 5s · error
Fig. – Two trips on Twig’s AI planner: one recommendation, and one request that timed out.