Skip to content

Commit

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

Linked to #30501

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored Jan 16, 2024
1 parent 95e673e commit 54a885c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/influxdbreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (r *metricsReceiver) Start(_ context.Context, host component.Host) error {
go func() {
defer r.wg.Done()
if errHTTP := r.server.Serve(ln); !errors.Is(errHTTP, http.ErrServerClosed) && errHTTP != nil {
host.ReportFatalError(errHTTP)
r.settings.ReportStatus(component.NewFatalErrorEvent(errHTTP))
}
}()

Expand Down

0 comments on commit 54a885c

Please sign in to comment.