Skip to content

Commit de923b0

Browse files
committed
feat: add telemetry for XML parsing errors
- Track XML parsing errors using captureDiffApplicationError - Include consecutive mistake count for better error analysis - Helps monitor and debug XML parsing issues in production
1 parent afa777e commit de923b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/tools/multiApplyDiffTool.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ Expected structure:
161161
Original error: ${errorMessage}`
162162
cline.consecutiveMistakeCount++
163163
cline.recordToolError("apply_diff")
164+
TelemetryService.instance.captureDiffApplicationError(cline.taskId, cline.consecutiveMistakeCount)
164165
await cline.say("diff_error", `Failed to parse apply_diff XML: ${errorMessage}`)
165166
pushToolResult(detailedError)
166167
return

0 commit comments

Comments
 (0)