|
|
@@ -31,6 +31,7 @@ class PostHogClient {
|
|
|
ERRORS: {
|
|
|
SCHEMA_VALIDATION_ERROR: "Schema Validation Error",
|
|
|
DIFF_APPLICATION_ERROR: "Diff Application Error",
|
|
|
+ CONSECUTIVE_MISTAKE_ERROR: "Consecutive Mistake Error",
|
|
|
},
|
|
|
}
|
|
|
|
|
|
@@ -281,6 +282,12 @@ class TelemetryService {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ public captureConsecutiveMistakeError(taskId: string): void {
|
|
|
+ this.captureEvent(PostHogClient.EVENTS.ERRORS.CONSECUTIVE_MISTAKE_ERROR, {
|
|
|
+ taskId,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Checks if telemetry is currently enabled
|
|
|
* @returns Whether telemetry is enabled
|