Skip to content

Commit

Permalink
replace deprecated scraperhelper.NewScraperWithComponentType with scr…
Browse files Browse the repository at this point in the history
…aperhelper.NewScraper
  • Loading branch information
hughesjj committed Sep 26, 2024
1 parent f541baa commit 9bcccae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/receiver/lightprometheusreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func createMetricsReceiver(
c, _ := rConf.(*Config)
s := newScraper(params, c)

scraper, err := scraperhelper.NewScraperWithComponentType(component.MustNewType(typeStr), s.scrape, scraperhelper.WithStart(s.start))
scraper, err := scraperhelper.NewScraper(component.MustNewType(typeStr), s.scrape, scraperhelper.WithStart(s.start))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9bcccae

Please sign in to comment.