Skip to content

Commit

Permalink
[chore] sapm receiver ReportFatalError -> ReportStatus (#30507)
Browse files Browse the repository at this point in the history
**Description:**
Remove use of deprecated host.ReportFatalError

**Link to tracking Issue:**
#30501
  • Loading branch information
atoulme authored Jan 15, 2024
1 parent d0b7bb7 commit cae5ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/sapmreceiver/trace_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (sr *sapmReceiver) Start(_ context.Context, host component.Host) error {
go func() {
defer sr.shutdownWG.Done()
if errHTTP := sr.server.Serve(ln); !errors.Is(errHTTP, http.ErrServerClosed) && errHTTP != nil {
host.ReportFatalError(errHTTP)
sr.settings.ReportStatus(component.NewFatalErrorEvent(errHTTP))
}
}()
return nil
Expand Down

0 comments on commit cae5ac8

Please sign in to comment.