Skip to content

Commit

Permalink
[chore] k8scluster receiver ReportFatalError -> ReportStatus (open-te…
Browse files Browse the repository at this point in the history
…lemetry#30638)

Remove use of deprecated host.ReportFatalError

Resolve open-telemetry#30592
  • Loading branch information
haoqixu authored Jan 17, 2024
1 parent ad6a16c commit 1b6a451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/k8sclusterreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (kr *kubernetesReceiver) Start(ctx context.Context, host component.Host) er
if errors.Is(timedContextForInitialSync.Err(), context.DeadlineExceeded) {
kr.resourceWatcher.initialSyncTimedOut.Store(true)
kr.settings.Logger.Error("Timed out waiting for initial cache sync.")
host.ReportFatalError(errors.New("failed to start receiver"))
kr.settings.TelemetrySettings.ReportStatus(component.NewFatalErrorEvent(errors.New("failed to start receiver")))
return
}
}
Expand Down

0 comments on commit 1b6a451

Please sign in to comment.