feat(telemetry): add diff stats to tool call metrics (#10819)

This commit is contained in:
Jerop Kipruto
2025-10-09 18:01:35 -04:00
committed by GitHub
parent 5aab793cfd
commit 1f6716f98a
4 changed files with 25 additions and 8 deletions
+5
View File
@@ -70,6 +70,11 @@ const COUNTER_DEFINITIONS = {
success: boolean;
decision?: 'accept' | 'reject' | 'modify' | 'auto_accept';
tool_type?: 'native' | 'mcp';
// Optional diff statistics for file-modifying tools
model_added_lines?: number;
model_removed_lines?: number;
user_added_lines?: number;
user_removed_lines?: number;
},
},
[API_REQUEST_COUNT]: {