kjuhwa/skills-hub/agent-tracing-spans
Claude Code and agent skill by kjuhwa/skills-hub
- community
Checking that the SKILL.md file is still in the repository.
Wrap multi-agent workflows in named traces and custom spans for debugging in the OpenAI Traces dashboard.
Install
npx vskill@latest install kjuhwa/skills-hub/agent-tracing-spansSKILL.md
The same SKILL.md was published earlier as kjuhwa/skills-hub/agent-tracing-spans.
agent-tracing-spans
Use the trace() context manager to group multiple Runner.run() calls into a single workflow trace. Use custom_span() to add arbitrary spans. Built-in spans (agent, generation, tool, handoff) are created automatically.
When to apply
Debugging complex multi-agent workflows, performance profiling, or monitoring production agent runs. The OpenAI Traces dashboard at platform.openai.com/traces visualizes the tree.
Core snippet
Background worker flush
Disable tracing
Key notes
- Tracing is enabled by default; disable with
OPENAI_AGENTS_DISABLE_TRACING=1env var trace(workflow_name, group_id=...)groups multi-turn conversationsflush_traces()blocks until buffered traces are exported (use in background workers)gen_trace_id()generates a validtrace_<32_alphanumeric>ID
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/observability/agent-tracing-spans/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kjuhwa/skills-hub/agent-tracing-spans)