L5a: Observability
Module: M5 Production
Files: starter.py, solution.py
Objective
Trace every tool call + LLM completion to SQLite.
Concepts
Refer to the corresponding module for full concept explanations.
Starter
bash
cd course/labs/l5-observability/
# Open starter file and fill in the TODOsCheckpoints
- Define SQLite schema for tool_calls and llm_completions
- Implement ObservabilityTracker class
- Log tool calls with params, result, duration
- Log LLM completions with token counts and cost
- Generate session summary report
Solution
Compare against the solution file after attempting the starter.