From f90f3b6a75d8f14bc8772e156b995bc501002556 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 16 Jan 2024 10:53:17 -0800 Subject: [PATCH] [chore] remotetap processor ReportFatalError -> ReportStatus (#30570) Remove use of deprecated host.ReportFatalError Linked to #30501 Fixes #30585 Signed-off-by: Alex Boten --- processor/remotetapprocessor/processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/remotetapprocessor/processor.go b/processor/remotetapprocessor/processor.go index e9408fb34ea7..1ab47613aee9 100644 --- a/processor/remotetapprocessor/processor.go +++ b/processor/remotetapprocessor/processor.go @@ -56,7 +56,7 @@ func (w *wsprocessor) Start(_ context.Context, host component.Host) error { go func() { defer w.shutdownWG.Done() if errHTTP := w.server.Serve(ln); !errors.Is(errHTTP, http.ErrServerClosed) && errHTTP != nil { - host.ReportFatalError(errHTTP) + w.telemetrySettings.ReportStatus(component.NewFatalErrorEvent(errHTTP)) } }() return nil