feat(ollama): telemetry 3 events — unreachable/recovered/recheck_manual (#1 v0.2.3)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
altair823
2026-05-02 01:30:26 +09:00
parent 12681e431c
commit a68ffe0aeb
6 changed files with 129 additions and 8 deletions

View File

@@ -24,7 +24,10 @@ export type EmitInput =
| { kind: 'permanent_delete'; payload: { noteId: string } }
| { kind: 'empty_trash'; payload: { count: number } }
| { kind: 'expired_banner_shown'; payload: { candidateCount: number } }
| { kind: 'expired_batch_trash'; payload: { count: number } };
| { kind: 'expired_batch_trash'; payload: { count: number } }
| { kind: 'ollama_unreachable'; payload: { reason: string } }
| { kind: 'ollama_recovered'; payload: { downtimeMs: number } }
| { kind: 'ollama_recheck_manual'; payload: Record<string, never> };
export class TelemetryService {
constructor(