Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

docs(tracing): replace overview structural diagram with real trace example

xf gongc7ada4511734
diff --git a/website/docs/guides/tracing/overview.md b/website/docs/guides/tracing/overview.md
index 8081e00..d6fa591 100644
--- a/website/docs/guides/tracing/overview.md
+++ b/website/docs/guides/tracing/overview.md
@@ -14,12 +14,20 @@ Azure Monitor, …) can ingest agent runs without custom instrumentation.
Attach a `Tracer` to an `Agent` and every prompt produces a tree of spans you
can pivot, query, and join with the rest of your service traces:
-```text
-invoke_agent <agent_name> [INTERNAL] one per agent.prompt()
-└── cubepi.turn [INTERNAL] one per LLM round-trip
- ├── chat <model> [CLIENT] the LLM call itself
- └── execute_tool <tool_name> [INTERNAL] each tool invocation
- └── tools/call <tool_name> [CLIENT] (MCP tools only)
+```
+trace
+└── invoke_agent 14425.8ms [0x1cd97cdb] ← one per agent.prompt()
+ ├── cubepi.turn 1283.1ms [0x5cfda93e] ← one per LLM round-trip
+ │ ├── chat deepseek-v4-flash 1208.7ms tok 6845/68 [0x0d130229]
+ │ └── execute_tool subagent 9610.2ms subagent [0x38bdd10a]
+ │ └── invoke_agent 9601.0ms [0x8094f99b] ← subagent run, nested
+ │ └── cubepi.turn 9598.4ms [0x57c5cfc7]
+ │ ├── chat deepseek-v4-flash 1190.3ms [0x8205ca6b]
+ │ └── execute_tool web_search 6500.2ms web_search [0xca4e59fc]
+ └── cubepi.turn 491.9ms ERROR [0xce25f242]
+ └── chat deepseek-v4-flash 427.2ms ERROR [0x0bff68ec]
+ └── error: Error code: 400 - ... `tool_use` ids were found without
+ `tool_result` blocks immediately after: call_01_...
```
Each layer carries standard `gen_ai.*` attributes — `gen_ai.operation.name`,