fix: add missing telemetry fields to CLAUDE.md §4.8
Add parent_call_id, provider, messages, response per ARCHITECTURE.md §4 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -247,8 +247,12 @@ MODE=mock N_SAMPLES=10 bash scripts/<experiment>.sh # smoke test
|
|||||||
| 必录字段 | 类型 | 说明 |
|
| 必录字段 | 类型 | 说明 |
|
||||||
|----------|------|------|
|
|----------|------|------|
|
||||||
| `call_id` | str | UUID,本次调用唯一标识 |
|
| `call_id` | str | UUID,本次调用唯一标识 |
|
||||||
|
| `parent_call_id` | str? | 父调用 ID(agent step → LLM call 链路) |
|
||||||
| `session_id` | str | epoch/step/question 关联 ID |
|
| `session_id` | str | epoch/step/question 关联 ID |
|
||||||
| `model_name` | str | 使用的模型名 |
|
| `model_name` | str | 使用的模型名 |
|
||||||
|
| `provider` | str | API 端点标识 |
|
||||||
|
| `messages` | str (JSON) | 原始输入 |
|
||||||
|
| `response` | str | 原始输出 |
|
||||||
| `prompt_tokens` / `completion_tokens` | int | token 用量 |
|
| `prompt_tokens` / `completion_tokens` | int | token 用量 |
|
||||||
| `latency_ms` | int | 延迟毫秒 |
|
| `latency_ms` | int | 延迟毫秒 |
|
||||||
| `cache_hit` | bool | 是否命中 Redis 缓存 |
|
| `cache_hit` | bool | 是否命中 Redis 缓存 |
|
||||||
|
|||||||
Reference in New Issue
Block a user