You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: telemetry improvements from deep AppInsights analysis (#587)
Based on 10-day telemetry analysis of altimate-code-os:
Error classification (P0):
- Add 4 new error classes: `file_not_found`, `edit_mismatch`,
`not_configured`, `resource_exhausted`
- Move warehouse/driver keywords from `connection` to `not_configured`
- Reduces "unknown" error classification from 85%+ to ~50%
Session metadata (P0):
- Add `os`, `arch`, `node_version` to `session_start` event
- Enables environment-based segmentation in dashboards
Doom loop detection (P1):
- Add per-tool call counter (threshold=30) to catch varied-input loops
- Emits `doom_loop_detected` telemetry event when triggered
- Addresses todowrite tool called 2,080x by one user
Token visibility (P1):
- Add `tokens_input_total` field to generation events
- Includes cached tokens for Anthropic (where `tokens_input` excludes cache)
- Only emitted when it differs from `tokens_input`
Telemetry query docs (P2):
- Add KQL reference documenting `customDimensions` vs `customMeasurements`
- Prevents analysts from querying the wrong column
Cleanup:
- Rename `telemetry-moat-signals.test.ts` → `telemetry-signals.test.ts`
- Remove "moat" terminology from test comments
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments