cockroachdb / cockroachdb/cockroach

debug.zip upload: Improve error logging and stack trace

Open
#133,422 1 comment 0 reactions 0 assignees View on GitHub
branch-master C-bug T-supportability
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Describe the problem**

Currently, when the upload process encounters an error, it immediately logs it to `STDERR`. Some errors can occur multiple times during the time span of the upload. In those cases, the user might see the error message being spammed on their console.

**Expected behavior**

We should think about how to improve the reporting of errors. On possible was handling this is, we can print a summary or all unique error in the end. We can also print stats like what percentage of logs were successfully upload etc

**Additional context**

https://cockroachlabs.slack.com/archives/C062T02NUPP/p1729694617458469

Jira issue: CRDB-43597

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.