Creative Genius Creative Genius
Lesson 4 of 4 · 16 min read

Observability Is Not Optional

Logging prompt + response + tokens + cost for every call. Or you're flying blind.

The minimum bar for production AI:

  1. Log every prompt, response, and tool call to a structured store (Postgres, Datadog, Langfuse).
  2. Track tokens in/out and cost per request. Aggregate by user, endpoint, and feature.
  3. Sample 1–10% of production traffic into an eval queue for human review.
  4. Set up alerts on cost-per-user spikes — they catch infinite loops fast.

Tools to know: Langfuse, LangSmith, Helicone, Phoenix (Arize). All have generous free tiers.

← Stop Conditions: Don't Burn $1000 in 3 Minutes Back to course