Skip to content

Commit

Permalink
[chore][receiver/filestats] Fix scraperhelper name (open-telemetry#30917
Browse files Browse the repository at this point in the history
)

**Description:** 

Before this change an empty name was passed to the scraperhelper.

**Link to tracking Issue:** This is needed to make contrib tests pass on
open-telemetry/opentelemetry-collector/pull/9414
  • Loading branch information
mx-psi authored and cparkins committed Feb 1, 2024
1 parent e1d4ed2 commit 2b33c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/filestatsreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func newReceiver(
fileStatsConfig := cfg.(*Config)

mp := newScraper(fileStatsConfig, settings)
s, err := scraperhelper.NewScraper(settings.ID.Name(), mp.scrape)
s, err := scraperhelper.NewScraper(metadata.Type, mp.scrape)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2b33c4f

Please sign in to comment.