Skip to content

Commit

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

Linked to open-telemetry#30501

Signed-off-by: Alex Boten <aboten@lightstep.com>
  • Loading branch information
Alex Boten committed Jan 16, 2024
1 parent 5482a62 commit 96a67a3
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 96a67a3

Please # to comment.