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

Deprecate all Scraper helpers in scraperhelper #11732

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

bogdandrutu
Copy link
Member

No description provided.

@bogdandrutu bogdandrutu requested a review from a team as a code owner November 22, 2024 18:07
@@ -63,14 +57,8 @@ type baseScraper struct {
ScrapeFunc
}

// NewScraper creates a scraper.Metrics that calls ScrapeMetrics at the specified collection interval,
// reports observability information, and passes the scraped metrics to the next consumer.
func NewScraper(scrape ScrapeFunc, options ...ScraperOption) (scraper.Metrics, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not breaking change because not released yet.

type ScrapeFunc func(context.Context) (pmetric.Metrics, error)

func (sf ScrapeFunc) ScrapeMetrics(ctx context.Context) (pmetric.Metrics, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Not released.

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

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 44.44444% with 5 lines in your changes missing coverage. Please review.

Project coverage is 91.54%. Comparing base (b8fe948) to head (c0fec8a).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
receiver/scraperhelper/scrapercontroller.go 40.00% 3 Missing ⚠️
receiver/scraperhelper/scraper.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11732      +/-   ##
==========================================
- Coverage   91.61%   91.54%   -0.08%     
==========================================
  Files         442      443       +1     
  Lines       23764    23764              
==========================================
- Hits        21772    21754      -18     
- Misses       1620     1637      +17     
- Partials      372      373       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codeboten codeboten merged commit e27c4ae into open-telemetry:main Nov 25, 2024
48 of 49 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 25, 2024
HongChenTW pushed a commit to HongChenTW/opentelemetry-collector that referenced this pull request Dec 19, 2024
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.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.

3 participants