-
Notifications
You must be signed in to change notification settings - Fork 2.8k
vendor perflib in perfcounterscraper #38859
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
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.
LGTM, I added windows build tags where appropriate and gotidy'd and it all looks good now. Should probably have review from someone other than me though 👀
Thank you @dehaansa for your help getting the CI passing! |
} | ||
|
||
if err != nil { | ||
panic(fmt.Sprint("Invalid index ", index)) |
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.
please remove this panic.
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR vendors the `perflib` package from the latest commit of [`windows_exporter`](https://github.com/prometheus-community/windows_exporter). Some constants had to be copied from related packages in `windows_exporter` to make it work. Original license attribution to Prometheus Authors under MIT license is included in this copy. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue open-telemetry#38858 <!--Describe what testing was performed and which tests were added.--> #### Testing Ran tests locally, running integration tests in CI. <!--Describe the documentation added.--> #### Documentation <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Sam DeHaan <[email protected]>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR vendors the `perflib` package from the latest commit of [`windows_exporter`](https://github.com/prometheus-community/windows_exporter). Some constants had to be copied from related packages in `windows_exporter` to make it work. Original license attribution to Prometheus Authors under MIT license is included in this copy. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue open-telemetry#38858 <!--Describe what testing was performed and which tests were added.--> #### Testing Ran tests locally, running integration tests in CI. <!--Describe the documentation added.--> #### Documentation <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Sam DeHaan <[email protected]>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR vendors the `perflib` package from the latest commit of [`windows_exporter`](https://github.com/prometheus-community/windows_exporter). Some constants had to be copied from related packages in `windows_exporter` to make it work. Original license attribution to Prometheus Authors under MIT license is included in this copy. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue open-telemetry#38858 <!--Describe what testing was performed and which tests were added.--> #### Testing Ran tests locally, running integration tests in CI. <!--Describe the documentation added.--> #### Documentation <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Sam DeHaan <[email protected]>
Description
This PR vendors the
perflib
package from the latest commit ofwindows_exporter
. Some constants had to be copied from related packages inwindows_exporter
to make it work. Original license attribution to Prometheus Authors under MIT license is included in this copy.Link to tracking issue
#38858
Testing
Ran tests locally, running integration tests in CI.
Documentation