Skip to content

Commit

Permalink
[chore] remotetap processor ReportFatalError -> ReportStatus (#30570)
Browse files Browse the repository at this point in the history
Remove use of deprecated host.ReportFatalError

Linked to #30501

Fixes #30585

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored Jan 16, 2024
1 parent dafb5f1 commit f90f3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/remotetapprocessor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f90f3b6

Please sign in to comment.