From d2202b65e91b09088cf4473a70160e014bb27293 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Thu, 8 Feb 2024 12:20:38 -0800 Subject: [PATCH] [chore] remove use of deprecated ReportFatalError --- receiver/awsfirehosereceiver/receiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awsfirehosereceiver/receiver.go b/receiver/awsfirehosereceiver/receiver.go index 6a4501aa096f..7d99659b0d3a 100644 --- a/receiver/awsfirehosereceiver/receiver.go +++ b/receiver/awsfirehosereceiver/receiver.go @@ -126,7 +126,7 @@ func (fmr *firehoseReceiver) Start(_ context.Context, host component.Host) error defer fmr.shutdownWG.Done() if errHTTP := fmr.server.Serve(listener); errHTTP != nil && !errors.Is(errHTTP, http.ErrServerClosed) { - host.ReportFatalError(errHTTP) + fmr.settings.ReportStatus(component.NewFatalErrorEvent(errHTTP)) } }()