From 4ac3323ff38960823cef6502a414c7c845b68ef6 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Fri, 9 Feb 2024 01:25:49 -0800 Subject: [PATCH] [chore] remove use of deprecated ReportFatalError (#31145) Fixes #30586 --- 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)) } }()