Skip to content

Commit

Permalink
[chore] Remove use of deprecated ReportFatalError (#31146)
Browse files Browse the repository at this point in the history
Fixes #30586
  • Loading branch information
atoulme authored Feb 9, 2024
1 parent 76c61f6 commit 2028f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/datadogreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (ddr *datadogReceiver) Start(_ context.Context, host component.Host) error

go func() {
if err := ddr.server.Serve(hln); err != nil && !errors.Is(err, http.ErrServerClosed) {
host.ReportFatalError(fmt.Errorf("error starting datadog receiver: %w", err))
ddr.params.TelemetrySettings.ReportStatus(component.NewFatalErrorEvent(fmt.Errorf("error starting datadog receiver: %w", err)))
}
}()
return nil
Expand Down

0 comments on commit 2028f68

Please sign in to comment.