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

Change host metrics shutdown to use done channel #1017

Merged

Conversation

james-bebbington
Copy link
Member

Minor change to the host metrics receiver to not rely on the context provided in the Start method to determine when the host metrics ticker function should be terminated.

Addresses #974 (comment)

@james-bebbington james-bebbington changed the title Change host metrics Shutdown logic to use done channel Change host metrics shutdown to use done channel May 25, 2020
@codecov
Copy link

codecov bot commented May 25, 2020

Codecov Report

Merging #1017 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1017   +/-   ##
=======================================
  Coverage   85.61%   85.61%           
=======================================
  Files         189      189           
  Lines       13167    13167           
=======================================
  Hits        11273    11273           
  Misses       1441     1441           
  Partials      453      453           
Impacted Files Coverage Δ
...ceiver/hostmetricsreceiver/hostmetrics_receiver.go 73.52% <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 daf2fc7...3ccd9c2. Read the comment docs.

…n provided context's cancelFn to signal end of ticker
@bogdandrutu bogdandrutu merged commit 995b68a into open-telemetry:master May 25, 2020
wyTrivail pushed a commit to mxiamxia/opentelemetry-collector that referenced this pull request Jul 13, 2020
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…uration files (open-telemetry#1017)

Migrate from legacy endpoint. The migration must be smooth because setting up default OTLP HTTP endpoint also enables the legacy one https://github.com/open-telemetry/opentelemetry-collector/blob/main/receiver/otlpreceiver/otlp.go#L146-L157. 

Co-authored-by: Ryan Fitzpatrick <rmfitzpatrick@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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants