-
Notifications
You must be signed in to change notification settings - Fork 127
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
DEVPROD-7663: Add grip statements to track Image Visibility API errors #8488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question -- do you know if we're already logging errors related to this at the error level? In that case, I think we should reduce all of these logs to the debug level -- otherwise, we're double counting errors, which can be annoying for our elevated error rate alert.
thirdparty/runtime_environments.go
Outdated
} | ||
toolchains := &APIToolchainResponse{} | ||
if err := gimlet.GetJSON(resp.Body, &toolchains); err != nil { | ||
grip.Error(message.WrapError(err, message.Fields{ | ||
"message": "parsing response from image visibility API", | ||
"reason": "runtime environments API alerting", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually tiny nit -- since this is consistent, I'd recommend making this a constant at the top of the file, like this
DEVPROD-7663
Description
Add grip errors for:
This will be used to configure a new Splunk alert.
Tagging app because I think you can tell me better on how grip alerts should look like 😅
Testing