AI Engineering · Module 11
Observability and operations
- Lessons
- 9
- Free
- 0
- Reading
- ~3 h
Your progress
0 / 9 lessons done
Sign in to trackLessons
- Deploying an AI service: containers and the cloudA model call that works on your laptop meets restarts, deploys, load balancers and autoscalers in production. Each one has defaults chosen for 100 ms web requests, and a 10-second model call breaks them in quiet ways: drafts lost in a deploy, streams cut at 60 seconds, workers that never scale.
- Tracing LLM calls: seeing every stepAn LLM feature is a chain of searches, model calls and checks, and when a user says an answer was strange you need to see that exact chain. Tracing gives you that record without turning your tracing tool into a second copy of every customer’s data.
- Monitoring quality in productionAn AI feature can get worse while every server is healthy, because the model’s inputs changed and nothing broke. Engineers who run these features in production have to measure the quality of the outputs themselves, or a customer finds the problem for them.
- Prompt and model versioning in productionWhen a customer complains about one AI reply, the first question is what produced it. If prompts, models and settings change in different places with no shared id, nobody can answer, and a bad edit reaches every customer at once.
- AI user experience: waiting, uncertainty and correctionsA good model behind a confusing screen gets ignored, and a weak model behind a confident screen gets trusted too much. Most of what people feel about an AI feature comes from the screen: how it waits, how it shows doubt and how it takes a correction.
- User feedback loops: learning from real usageEvery AI feature that people correct is producing free labels about where it fails. Teams that capture and count those corrections fix the right things; teams that don’t keep guessing from a few complaints.
- Model upgrades: switching without regressionsEvery model your product calls will be replaced and later retired. Changing the model id is one line; finding out what else changed, before your users do, is the work.
- Incident response for AI featuresAn AI feature can go wrong for hundreds of customers while every server stays healthy. The team that has a switch, a query and a runbook ready stops it in minutes; the team that doesn’t learns about it from its customers.
- Lab: adding tracing to an agentAn agent that misbehaves in production leaves you with one question: what did this run actually do? A trace answers it step by step, and adding one to a hand-written loop takes about 40 lines once you know where each span starts and what it may hold.
Practise with
No tools or paper guides for this module yet.
Terms this module teaches 33
Open glossaryBinomial floor
The smallest spread a rate measured over n outputs can have from chance alone: √(p × (1 − p) ÷ n). Small slices can’t be steadier than this, whatever their history shows.
Blameless post-mortem
An incident review that looks for the conditions that let a failure happen, assuming everyone acted well on what they knew, instead of looking for someone to blame.
Browser deadline
A time limit the screen keeps for itself while it waits for a server, so a dropped connection or a dead worker ends in a plain message instead of a spinner that never stops.
Container image
A packaged file system snapshot holding an app’s code, libraries and runtime, from which identical containers are started.
Control limit
An alert line set k standard deviations from a metric’s normal mean, so normal variation rarely crosses it. With k = 3, a normally distributed value crosses one side by chance about 0.135% of the time.
Draft status line
One line at the top of an AI draft, worked out by code from the draft’s checks, that names the most serious problem and the next step for the person, instead of a confidence score.
Edit type
A category for what a person changed in an AI output before using it, such as a fact fixed, a policy corrected, a tone changed or a length cut.
Feedback loop (AI products)
The process that captures how people use and correct an AI feature’s output, counts what it shows, and turns it into changes to prompts, code, data or evals.
Graceful shutdown
Stopping a process so it takes no new work and finishes or hands back what it holds before it exits.
Held version
A prompt or model version whose stored outputs are hidden from users during an incident, so outputs made before a rollback can't be shown or sent.
Idle timeout
How long a connection may go without any data sent or received before a load balancer or proxy closes it.
Input drift
A change over time in what a feature receives, such as new ticket types, languages or document formats. It often comes before a drop in output quality.
Liveness check
A health check whose failure makes the platform restart the container, used to detect a stuck process.
Long-prompt pricing
Higher per-token prices that some models charge when a request’s prompt is longer than a threshold. The whole request is billed at the higher rate.
Model alias
A short model name that points to another, fixed model id and can be moved to a newer one. On the Claude API, models before the 4.6 generation have aliases that point to their most recent dated snapshot; newer dateless ids are snapshots themselves.
Model deprecation
The stage before retirement: the model still works, but the provider names a replacement and a retirement date.
Model retirement
When a provider stops serving a model. After the retirement date, requests that name it fail, so applications must move to a replacement first.
OpenTelemetry
An open standard, with libraries for most languages, for producing traces, metrics and logs and sending them to any backend that accepts its protocol.
OTLP
The OpenTelemetry Protocol: the format and transport, over HTTP or gRPC, that sends spans, metrics and logs from a program to a collector or backend.
Pinned dependency
A library fixed to one exact version, so every build installs the same code until someone changes the pin on purpose.
Population stability index (PSI)
One number for how much a distribution across categories has shifted from a reference: the sum over categories of (actual share − reference share) × ln(actual share ÷ reference share). A common rule of thumb reads below 0.1 as stable and above 0.25 as a large shift.
Prompt store
A service or tool that keeps prompts outside the application code, so they can be edited without a deploy. Safe only if every save is a new version, a second person approves, an eval runs and the change goes out in stages.
Queue age
How long the oldest waiting job has been in a queue: how late the work already is.
Reference period
A fixed stretch of time when a feature is known to have worked well, used as the normal against which later values are compared. It changes only when a deliberate change is checked and accepted.
Release bundle
Everything that decides an AI feature’s output (prompt text, model id, parameters such as effort and max_tokens, tool definitions, retrieval settings and output checks), released together under one release id and never edited after release.
Release id
One id that names everything that produced an AI output together: prompt version, model id and settings, saved with each output.
Response buffering
A proxy collecting a backend’s response before passing it on, which holds back the pieces of a streamed response.
Span event
A named, timestamped record attached to a span, with its own attributes, for something that happened at one moment rather than over a period.
Span exporter
The part of a tracing setup that sends finished spans somewhere: printed to a terminal, written to a file, or sent over the network to a tracing backend.
Standard deviation
A measure of how far values typically sit from their mean. Written σ (sigma).
Step progress
A way to show a long task that lists the steps already done and the one running now, instead of a percent bar, used when the total number of steps isn’t known in advance.
Trace
The record of one task from start to finish, made of spans that share one trace id and form a tree, each with its timing, status and attributes.
Trace sampling
Keeping only some traces to cut storage, decided either when a task starts (head sampling) or after it ends, from its outcome (tail sampling).