From e5066525a7d2e674143609f36c189f035112d22b Mon Sep 17 00:00:00 2001 From: Patryk Matyjasek Date: Wed, 2 Jun 2021 14:01:02 +0200 Subject: [PATCH] Add missing file Signed-off-by: Patryk Matyjasek --- receiver/hostmetricsreceiver/factory.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/hostmetricsreceiver/factory.go b/receiver/hostmetricsreceiver/factory.go index f48ea0e0b08..e9721cd223e 100644 --- a/receiver/hostmetricsreceiver/factory.go +++ b/receiver/hostmetricsreceiver/factory.go @@ -89,20 +89,20 @@ func createDefaultConfig() config.Receiver { // createMetricsReceiver creates a metrics receiver based on provided config. func createMetricsReceiver( ctx context.Context, - params component.ReceiverCreateParams, + set component.ReceiverCreateSettings, cfg config.Receiver, consumer consumer.Metrics, ) (component.MetricsReceiver, error) { oCfg := cfg.(*Config) - addScraperOptions, err := createAddScraperOptions(ctx, params.Logger, oCfg, scraperFactories, resourceScraperFactories) + addScraperOptions, err := createAddScraperOptions(ctx, set.Logger, oCfg, scraperFactories, resourceScraperFactories) if err != nil { return nil, err } return scraperhelper.NewScraperControllerReceiver( &oCfg.ScraperControllerSettings, - params.Logger, + set.Logger, consumer, addScraperOptions..., )