Skip to content

Commit

Permalink
[chore] webhookevent receiver ReportFatalError -> ReportStatus (#30504)
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 16, 2024
1 parent 3f33b59 commit 5482a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/webhookeventreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (er *eventReceiver) Start(_ context.Context, host component.Host) error {
go func() {
defer er.shutdownWG.Done()
if errHTTP := er.server.Serve(ln); !errors.Is(errHTTP, http.ErrServerClosed) && errHTTP != nil {
host.ReportFatalError(errHTTP)
er.settings.TelemetrySettings.ReportStatus(component.NewFatalErrorEvent(errHTTP))
}
}()

Expand Down

0 comments on commit 5482a62

Please sign in to comment.