Observing AI Features: Traces, Cost and Latency

Stephen Gruppetta 25 Lessons 7h 39m Updated advanced ai backend node

Your AI feature works on your laptop, but what does it do for real users: which steps does each question take, what does it cost, and how long do people wait? In this course, you’ll answer those questions with numbers you produce yourself. You’ll follow the Ridgeline Huts trail-conditions assistant through a simulated summer season, where a wrong answer can send a hiker up a closed path.

You’ll log every request with an ID and a timer, record a trace of every retrieval, model call and tool call, and read a trace in order to find the step that went wrong. You’ll map where a hiker’s message is copied and keep personal data out of what you record, then price each request from its usage and report latency as percentiles.

In the project, a simulated week brings two problems: the treasurer asks why the bill tripled, and a hiker was sent to a full hut. You’ll report the week’s cost and latency, trace the full-hut answer to its cause, and explain your findings.

What’s Included:

  • 25 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 8 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

Each tutorial at RealJS is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

← Browse All Courses