feat(telemetry): capture error message on failed CLI runs #21
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shekhar/windows-iso-downloader#21
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/telemetry-error-field"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Why
Test plan
Summary by CodeRabbit
New Features
Bug Fixes
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
d84088de-1517-4e12-9e08-acee21d66019📥 Commits
Reviewing files that changed from the base of the PR and between
8258bd139dand8ab322038b.📒 Files selected for processing (2)
backend/main.gocli/main.go📝 Walkthrough
Walkthrough
This PR adds error tracking to the telemetry system. The CLI now truncates error messages to 150 characters and includes them in telemetry payloads. The backend accepts this new Error field, increments a Redis-based error counter on failed telemetry events, and includes error aggregates when loading telemetry data.
Changes
Telemetry Error Tracking
cli/main.goErrorfield tocliTelemetryPayloadand atruncateErrorhelper that caps error text at 150 characters; wirestruncateError(err)into the telemetry event sent viasendTelemetry.backend/main.goErrorfield totelemetryPayload; inhandleTelemetry, increments themsdl:telemetry:errorsRedis hash when a failed event includes a valid (≤200 char) error;loadTelemetryFromRedisnow also loads this hash into aggregated telemetry output.Estimated code review effort: 1 (Trivial) | ~5 minutes
Sequence Diagram(s)
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
feat/telemetry-error-fieldThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.