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

Disable process scraper for any non Linux/Windows OS #1328

Merged

Conversation

james-bebbington
Copy link
Member

@james-bebbington james-bebbington commented Jul 13, 2020

Much of the process scraper functionality is not supported on non Linux/Windows OSs, or is implemented poorly, e.g. this was taking about 15s to complete on my Macbook. Have opted to explicitly disable the scraper on any other OS.

Also fixed issue where an error wasn't returned on initialization in one case and added a test for this.

Fixes #958

@project-bot project-bot bot added this to In progress in Collector Jul 13, 2020
Collector automation moved this from In progress to Reviewer approved Jul 13, 2020
@codecov
Copy link

codecov bot commented Jul 13, 2020

Codecov Report

Merging #1328 into master will increase coverage by 0.01%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1328      +/-   ##
==========================================
+ Coverage   89.67%   89.69%   +0.01%     
==========================================
  Files         215      214       -1     
  Lines       15124    15126       +2     
==========================================
+ Hits        13563    13567       +4     
+ Misses       1138     1137       -1     
+ Partials      423      422       -1     
Impacted Files Coverage Δ
...eceiver/internal/scraper/processscraper/factory.go 60.00% <0.00%> (-15.00%) ⬇️
...ceiver/hostmetricsreceiver/hostmetrics_receiver.go 88.52% <100.00%> (+3.27%) ⬆️
...al/scraper/processscraper/process_scraper_linux.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 322c35d...55169b7. Read the comment docs.

@james-bebbington
Copy link
Member Author

This is the highest I can possibly get coverage for this PR since coverage reports are Linux only

@bogdandrutu
Copy link
Member

Please rebase

Collector automation moved this from Reviewer approved to Done Jul 13, 2020
@bogdandrutu bogdandrutu reopened this Jul 13, 2020
Collector automation moved this from Done to In progress Jul 13, 2020
@bogdandrutu
Copy link
Member

I closed this by mistake

@james-bebbington
Copy link
Member Author

The build checks don't seem to be getting triggered, do I need to recreate this PR since it was closed?

@james-bebbington james-bebbington changed the base branch from master to release/v0.4.x July 13, 2020 08:39
@james-bebbington james-bebbington changed the base branch from release/v0.4.x to master July 13, 2020 08:39
Collector automation moved this from In progress to Done Jul 13, 2020
@bogdandrutu bogdandrutu reopened this Jul 13, 2020
Collector automation moved this from Done to In progress Jul 13, 2020
Collector automation moved this from In progress to Reviewer approved Jul 13, 2020
@bogdandrutu bogdandrutu merged commit cab1561 into open-telemetry:master Jul 13, 2020
Collector automation moved this from Reviewer approved to Done Jul 13, 2020
wyTrivail pushed a commit to mxiamxia/opentelemetry-collector that referenced this pull request Jul 13, 2020
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
…still read the response body. (open-telemetry#1328)

* chore(zipkin-exporter): relay on the status code for the request but still read the response body.

* fix(zipkin-exporter): fix tests.

* chore(zipkin-exporter): adds changelog.

* chore: 202 -> http.StatusAccepted

Co-authored-by: Chris Bandy <bandy.chris@gmail.com>

* chore: 202 -> http.StatusAccepted

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

Co-authored-by: Chris Bandy <bandy.chris@gmail.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

TestGatherMetrics_EndToEnd is unstable
2 participants