Advanced course for engineers

AI observability course: see inside your AI system in production

Your AI feature works in the demo, then a user reports a wrong answer and you cannot say why. The course covers how to keep one record per model call, read agent traces, track tokens, cost and errors, catch quality drift, and run the system with SLOs and alerts.

Open the courseSee the loop

The loop

One loop in four parts: trace, measure, evaluate, respond

In the intro video, a failed agent run gets readable once you open its trace and go through each span. Token, cost and error numbers show where money and time go, and evaluation and drift checks catch quality that slips.

Still from the intro video for the course AI Observability, Monitoring & Production Operations
Intro video, 1 min 14 s. Transcript below.
Read the transcript

Your AI feature works in the demo. Then, in production, a user reports a wrong answer and you cannot say why. This course is for engineers who run these systems and need to see inside them. Here is what changes. A failed agent run stops being a mystery: you open its trace and read each span. Cost and latency stop surprising you: you track tokens, cost and error rates. Quality stops slipping quietly: evaluation and drift checks catch it. The course follows one loop. You trace every call and agent run. You measure tokens, latency and cost. You evaluate quality in production and watch for drift. You respond with alerts, SLOs and a debugging routine, then trace again. The course ends with a capstone: an observability plan and dashboard for an agent. If you operate AI in production, start with the first chapter and build yours.

  1. 1

    Trace model calls and agent runs

    One record per model call, and each step of a run, so a run can be read afterward.

  2. 2

    Measure tokens, latency and cost

    Put numbers on what each call uses and how long it takes.

  3. 3

    Evaluate quality and watch for drift

    Check answers in production and notice when quality slips.

  4. 4

    Respond with alerts, SLOs and debugging

    Set targets, get alerted, debug a failed run.

Then trace again

The course intro video with its transcript, then the four parts of the loop as panels in a row. A dotted line leads from the last panel back to the first, since the course ends with tracing again.

Chapters 1 and 2

One record per model call, then read an agent run as a trace

Chapter 1 starts with why AI systems fail quietly and what to observe. Chapter 2 teaches the anatomy of a trace for LLM calls and agents.

Agent run (invented example)

  1. Agent run (Run)
  2. Model call: plan (Model call)
  3. Tool: search (Tool call)
  4. Model call: read results (Model call)
  5. Tool: send reply (Tool call)

Read it from the top: the run holds four spans, and the gaps between bars are time the run spent between steps.

  • One record per model call

    Chapter 1, lesson 3.

  • Anatomy of a trace

    Chapter 2, lesson 1.

  • Context propagation

    Chapter 2, lesson 2.

  • Reading an agent trace

    Chapter 2, lesson 4, drawn above.

An invented agent run drawn as a trace: one bar per span, nested under the run, laid out along time. Bar width is relative duration.

AI agents course: build the agent you will observe →

Chapter 3

Count tokens, split the latency, and see what each feature spends on retries

Chapter 3 covers tokens, latency, cost and error rates. The bars below use invented shares to show what it asks you to separate.

One call, split in time (invented example)

  • Wait for the first token
  • Streaming the rest

Spend per feature (invented example)

  • Search answersUseful calls 70, Retries 10, Other 20
  • SummariesUseful calls 55, Retries 30, Other 15
  • Agent runsUseful calls 45, Retries 15, Other 40
  • Token accounting

    Count what each call sends and receives.

  • Latency, time to first token and streaming

    Chapter 3, lesson 2.

  • An error taxonomy

    Sort failures into named kinds before you count them.

  • Cost per feature and budgets

    Attach spend to the feature that caused it.

  • Retries and their price

    Chapter 3, lesson 5.

Left, the wait of one invented call split into the wait for the first token and the stream after it. Right, three invented features with the share of their spend on useful calls, retries and everything else.

Chapters 4 and 5

Grade live answers, then watch the scores for drift

Chapter 4 teaches evaluation in production. Chapter 5 teaches drift and quality degradation, including output drift and control limits.

Average quality score of graded answers (invented example)

Chapter 4: grading live answers, in the order of its lessons

  1. What can be measured live
  2. Sampling answers for grading
  3. A model as judge
  4. User feedback
  5. Closing the loop
  • Four kinds of drift

    Chapter 5, lesson 1.

  • Measuring input drift

    Chapter 5, lesson 2.

  • Output drift and control limits

    The lesson behind the chart above.

  • Gating a model change

    Check a new model before it takes over.

  • Knowledge drift

    Chapter 5, lesson 5.

An invented quality score over time with a center line and an upper and a lower control limit. One day falls below the lower limit and is ringed.

Hallucination detection course: measure factuality →

Chapter 6

Set an SLO and see how fast a bad stretch burns the error budget

Chapter 6 covers alerts, SLOs and incident response. This example shows the arithmetic behind a burn-rate alert.

Error budget and burn rate

Example numbers and example alert thresholds, not a measurement of any system.

SLO: share of answers that must be good
Share of bad answers in a recent short window

Share of the 30 day budget that one day at this rate uses

One day uses 7%

Error budget
1%
Burn rate
2x
Budget empty after
15 days

Open a ticket

Window: 30 days.

SLO 99 percent, 2 percent bad answers. Burn rate 2 times. Budget empty after: 15 days. Open a ticket.

  • SLIs, SLOs and the error budget

    Pick what to measure, set a target, and count what the target leaves you.

  • A quality SLO

    Chapter 6, lesson 2.

  • Burn-rate alerts

    Alert on how fast the budget is being used.

  • Incident response

    What the team does once an alert fires.

  • Levers and postmortems

    What you can change, and how you learn from it afterward.

Pick an SLO target and a recent share of bad answers. The page shows the error budget, the burn rate, the days until a 30 day budget is empty and the example alert.
  • The rule in this example: the error budget is 100 percent minus the SLO, counted over 30 days. The burn rate is the share of bad answers divided by that budget. At a burn rate of 1 the budget lasts exactly the 30 days, and above 1 it runs out after 30 days divided by the burn rate.
  • The example alerts are a ticket at a burn rate of 2 or more and a page at 10 or more. Those two thresholds belong to this page, not to the course.

AI security and reliability course: fallbacks, limits and tests →

Chapters 7 and 8

Find the first wrong step of a failed run, then build the dashboard

Chapter 7 teaches debugging a failed agent run. The capstone, an observability plan and dashboard for an agent, brings the chapters together.

A failed run (invented example)

  1. 1User asks for the refund rule
  2. 2Search returns an old policy page
  3. 3The model quotes the old ruleFirst wrong step
  4. 4The model builds a plan on itBuilt on the wrong step
  5. 5The reply states the wrong ruleBuilt on the wrong step

Chapter 7: debugging a failed run, in the order of its lessons

  1. 1Find the first wrong step
  2. 2Failure types
  3. 3Context growth
  4. 4Reproducing a run
  5. 5Verifying a fix

Capstone: an observability plan and dashboard for an agent

  1. 1Questions first

    Decide what you need to be able to answer.

  2. 2The record schema

    Define what each record holds.

  3. 3SLO and error budget

    Set the targets, as in chapter 6.

  4. 4Dashboard numbers from a log

    Compute the dashboard from the records.

  5. 5Runbook and review

    Write what to do when it breaks, then review the plan.

Open the course: AI Observability, Monitoring & Production Operations

Left, an invented failed run as a timeline: the first wrong step is marked, and every later step builds on it. Right, the five steps of the capstone.

LLM engineering course: build the system you will operate →

AI observability course: common questions

  • What is AI observability?

    Being able to see what an AI system did and why: recording each model call, reading traces of agent runs, tracking tokens, latency, cost and errors, and checking quality while the system runs in production.

  • Who is the AI observability course for?

    Its course page addresses software engineers and technical product people who build AI features.

  • What level is it?

    It sits at the advanced level in the course catalogue.

  • What can I do about a live AI system afterward?

    Six outcomes are named for the course: what to observe in an AI system, traces and spans for LLM calls and agents, tokens, latency, cost and error rates, evaluation in production, drift and quality degradation, and alerts, SLOs and incident response.

  • What do I build?

    The capstone is an observability plan and dashboard for an agent. Its five steps are questions first, the record schema, an SLO and error budget, dashboard numbers from a log, and a runbook and review.

  • How is the course organized?

    There are eight chapters and 40 lessons, with the capstone as chapter 8.

  • Do I receive a certificate for the observability course?

    Per the Academy's legal text, a course that ends in a certificate lets you download it as a PDF from your learning page. What you receive, a certificate or a confirmation of participation, depends on the course and on how you went through it.

  • Does the coach grade my observability work?

    No. According to the Academy's legal text, fixed rules turn your graded work into your levels. The AI coach has no say in them and cannot tell you whether you will be certified.