From 3bc3e87fc123e0ebc8a8f9b5390e99641d840c29 Mon Sep 17 00:00:00 2001 From: Arthur Silva Sens Date: Fri, 10 Jan 2025 11:03:51 -0300 Subject: [PATCH] Use nil for ScrapeManager's scrapeErrorFileLogger Signed-off-by: Arthur Silva Sens --- receiver/prometheusreceiver/metrics_receiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/prometheusreceiver/metrics_receiver.go b/receiver/prometheusreceiver/metrics_receiver.go index ae7b4de92f45..cc4db111bcce 100644 --- a/receiver/prometheusreceiver/metrics_receiver.go +++ b/receiver/prometheusreceiver/metrics_receiver.go @@ -167,7 +167,7 @@ func (r *pReceiver) initPrometheusComponents(ctx context.Context, logger *slog.L Set(reflect.ValueOf(true)) } - scrapeManager, err := scrape.NewManager(opts, logger, store, r.registerer) + scrapeManager, err := scrape.NewManager(opts, logger, nil, store, r.registerer) if err != nil { return err }