AI Agent Frameworks / Quiz
Run Trees and @traceable
You cannot debug what you cannot see. LangSmith tracing turns a black-box agent run into a tree of spans with inputs, outputs, and cost.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 8 min
// MISSION BRIEF
Your Mission
LangSmith records every step of an LLM app as a run tree: the root run, its child runs, their children. For a tester, tracing is the difference between "the agent was wrong" and "step 3 sent the wrong argument to the wrong tool".
Scoring: equal weight per question.
// FIRST CONTACT
Battle teaser
The minimum setup to start tracing a LangChain/LangGraph app into LangSmith:
- ASet LANGSMITH_TRACING=true and LANGSMITH_API_KEY (plus optionally LANGSMITH_PROJECT), the integrations then log runs automatically
- BTracing requires a self-hosted cluster
- CInstall a browser extension
- DRewrite the app to emit printf logs
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
langsmithtracingobservabilityai-agents