Advanced AI Agents #observability #traces #spans #token-budget

Agent Observability

5 exercises — master the vocabulary of making AI agent systems visible and debuggable: traces, spans, LangSmith, LangFuse, token budgets, and span-level analysis.

0 / 5 completed
Agent observability vocabulary quick reference
  • Trace — the complete record of one agent run (all steps, costs, inputs/outputs)
  • Span — a single step within the trace (one LLM call, one tool call, etc.)
  • LLM span — span recording one LLM call (prompt, completion, tokens, latency)
  • Token budget — max tokens a run is allowed to consume (hard or soft limit)
  • Budget-exceeded status — run terminated by resource limit, not task completion
  • LangSmith / LangFuse — LLM observability platforms for tracing, eval, and cost analysis
  • Span-level token analysis — inspecting token counts per step to find optimisation targets
1 / 5

In agent observability platforms like LangSmith or LangFuse, what does a "trace" represent?