feat(observability): 豆包 LLM/VLM/Seedream/信任链加 elapsed 耗时日志 #2171
Reference in New Issue
Block a user
Delete Branch "feat/2171-elapsed-timing-logs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目的
排查爆款视频「图片分析慢」「文案生成慢」(#2171)需要真实耗时数据,当前豆包API调用层和信任链都没有 elapsed 字段,只能靠日志时间戳差估算。
改动
DoubaoClient.chat_completion:成功/重试/失败日志加elapsed=%.1fs+tokens_in/tokens_out+attemptDoubaoClient.vision_completion:同上DoubaoClient.image_generation(Seedream):成功/失败日志加elapsed+attempt(之前PR 2170 加了一半,这次补全)总耗时 %.1fs影响
测试
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #2171 已关闭或合并,对应的预览环境已被清理。