fix: add missing trace info and cancellation events

This commit is contained in:
mingholy.lmh
2025-10-10 20:32:57 +08:00
parent 9fce177bd8
commit ff10b9fded
9 changed files with 206 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ export const EVENT_CONVERSATION_FINISHED = 'qwen-code.conversation_finished';
export const EVENT_MALFORMED_JSON_RESPONSE =
'qwen-code.malformed_json_response';
export const EVENT_SUBAGENT_EXECUTION = 'qwen-code.subagent_execution';
export const EVENT_USER_CANCELLATION = 'qwen-code.user_cancellation';
export const METRIC_TOOL_CALL_COUNT = 'qwen-code.tool.call.count';
export const METRIC_TOOL_CALL_LATENCY = 'qwen-code.tool.call.latency';