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

Handle bad metadata secret values gracefully #224

Conversation

divolgin
Copy link
Member

@divolgin divolgin commented Dec 6, 2024

What this PR does / why we need it:

If metadata secret becomes malformed, reporting custom metrics will start failing and will not recover on its own. When the secret or the data are malformed, the API should continue to function.

Which issue(s) this PR fixes:

Fixes https://app.shortcut.com/replicated/story/117030/replicated-sdk-fails-to-report-custom-metrics-if-the-latest-custom-metrics-key-is-not-there

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

Fixes a bug that could cause custom metrics to not be reported.

Does this PR require documentation?

NONE

pandemicsyn
pandemicsyn previously approved these changes Dec 6, 2024
@divolgin divolgin merged commit bf14926 into main Dec 9, 2024
11 checks passed
@divolgin divolgin deleted the divolgin/sc-117030/replicated-sdk-fails-to-report-custom-metrics branch December 9, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants