-
Notifications
You must be signed in to change notification settings - Fork 24
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
[system/process] add support for mutlierr #166
[system/process] add support for mutlierr #166
Conversation
metric/system/process/helpers.go
Outdated
@@ -98,3 +100,10 @@ func GetProcCPUPercentage(s0, s1 ProcState) ProcState { | |||
return s1 | |||
|
|||
} | |||
|
|||
func CanIgnore(err error) bool { |
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.
Does this need to be exported, as it seems to be used from within the same package?
func CanIgnore(err error) bool { | |
func canIgnore(err error) bool { |
Same goes for CanDegrade
.
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.
Hi,
Regarding CanDegrade
, we use this helper in metricbeat here.
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.
Also, @ycombinator we will also use CanDegrade
here to ignore non-fatal errors.
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.
I've made CanIgnore
local to this package.
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.
Couple of small things but besides those looks good.
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.
Thanks!
This reverts commit 3abd5c0.
What does this PR do?
Checklist
CHANGELOG.md