Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diagnostics: save stats on disk #10421

Merged
merged 12 commits into from
May 24, 2024
Merged

diagnostics: save stats on disk #10421

merged 12 commits into from
May 24, 2024

Conversation

dvovk
Copy link
Member

@dvovk dvovk commented May 20, 2024

Added diagnostics DB as it require to persist latest state to be displayed for diagnostics command

@dvovk dvovk added the do-not-merge PR that is in a merge-able state but is waiting for something else to take place before merging label May 20, 2024
@dvovk dvovk requested review from awskii and AskAlexSharov May 23, 2024 16:44
@dvovk dvovk removed the do-not-merge PR that is in a merge-able state but is waiting for something else to take place before merging label May 24, 2024
err := json.Unmarshal(data, &info)

if err != nil {
return []string{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it ok to just omit error? data is stored in db but each time it could be just empty string or 0 without knowing something wrong with encoding - so maybe add error log entry when error happens and omitted?

@awskii awskii enabled auto-merge (squash) May 24, 2024 14:24
@awskii awskii merged commit 6d6c12e into main May 24, 2024
10 checks passed
@awskii awskii deleted the savediagdata branch May 24, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants