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

Refactor metrics scraper to use interface for Scrapers #1945

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

bogdandrutu
Copy link
Member

The main advantage is that entire functionality that can be added to the receiver can be encapsulated in one object,
which means some scrapers can be consumed from external packages.

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

The main advantage is that entire functionality that can be added to the receiver can be encapsulated in one object,
which means some scrapers can be consumed from external packages.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@codecov
Copy link

codecov bot commented Oct 13, 2020

Codecov Report

Merging #1945 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1945   +/-   ##
=======================================
  Coverage   91.46%   91.47%           
=======================================
  Files         284      284           
  Lines       16772    16774    +2     
=======================================
+ Hits        15341    15344    +3     
+ Misses       1001     1000    -1     
  Partials      430      430           
Impacted Files Coverage Δ
receiver/receiverhelper/receiver.go 96.22% <100.00%> (-0.17%) ⬇️
receiver/receiverhelper/scraper.go 100.00% <100.00%> (+5.55%) ⬆️

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 592eb97...f3d22bb. Read the comment docs.

Copy link
Member

@james-bebbington james-bebbington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

receiver/receiverhelper/receiver.go Show resolved Hide resolved
@bogdandrutu bogdandrutu merged commit 4a0747c into open-telemetry:master Oct 13, 2020
@bogdandrutu bogdandrutu deleted the mscraper branch October 13, 2020 02:50
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