* Captures telemetry for prompt enhancement * @param taskId Optional task ID for telemetry tracking * @param includeTaskHistory Whether task history was included in the enhancement
(taskId?: string, includeTaskHistory?: boolean)
| 132 | * @param includeTaskHistory Whether task history was included in the enhancement |
| 133 | */ |
| 134 | static captureTelemetry(taskId?: string, includeTaskHistory?: boolean): void { |
| 135 | if (TelemetryService.hasInstance()) { |
| 136 | // Use captureEvent directly to include the includeTaskHistory property |
| 137 | TelemetryService.instance.captureEvent(TelemetryEventName.PROMPT_ENHANCED, { |
| 138 | ...(taskId && { taskId }), |
| 139 | includeTaskHistory: includeTaskHistory ?? false, |
| 140 | }) |
| 141 | } |
| 142 | } |
| 143 | } |
no test coverage detected