feat(retry): telemetry ai_retry_manual + stats AI 수동 재시도 (#2 v0.2.3)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -151,3 +151,16 @@ describe('aggregateStats — ollama_* events', () => {
|
||||
expect(r.md).toMatch(/평균 downtimeMs.*N\/A/);
|
||||
});
|
||||
});
|
||||
|
||||
describe('aggregateStats — ai_retry_manual', () => {
|
||||
it('counts events and sums failedCount', () => {
|
||||
const events = [
|
||||
{ ts: '2026-05-01T00:00:00.000Z', kind: 'ai_retry_manual' as const, payload: { failedCount: 3 } },
|
||||
{ ts: '2026-05-01T01:00:00.000Z', kind: 'ai_retry_manual' as const, payload: { failedCount: 7 } }
|
||||
];
|
||||
const r = aggregateStats(events, new Date('2026-05-02T00:00:00Z'));
|
||||
expect(r.md).toContain('ai_retry_manual');
|
||||
// 2회 / 누적 10건
|
||||
expect(r.md).toMatch(/AI 수동 재시도.*2회.*10건/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user