Skip to content

Handle errors in cpu_sup#558

Open
tomtaylor wants to merge 1 commit intonewrelic:masterfrom
tomtaylor:cpu-sup-error
Open

Handle errors in cpu_sup#558
tomtaylor wants to merge 1 commit intonewrelic:masterfrom
tomtaylor:cpu-sup-error

Conversation

@tomtaylor
Copy link
Copy Markdown
Contributor

As per the docs, cpu_sup can return an error tuple, or 0 if it's not started. Handle these cases to prevent it bubbling up to the metric harvester, causing an ArgumentError.

Return a nil value if cpu_sup returns an error, or isn't started, to prevent this bubbling up to the metric harvester, causing an ArgumentError.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 25, 2026

CLA assistant check
All committers have signed the CLA.

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