Skip to content

Commit

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

Remove use of deprecated host.ReportFatalError

open-telemetry#30501
  • Loading branch information
atoulme authored and cparkins committed Feb 1, 2024
1 parent b761aff commit d003094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/skywalkingreceiver/skywalking_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (sr *swReceiver) startCollector(host component.Host) error {
go func() {
defer sr.goroutines.Done()
if errHTTP := sr.collectorServer.Serve(cln); !errors.Is(errHTTP, http.ErrServerClosed) && errHTTP != nil {
host.ReportFatalError(errHTTP)
sr.settings.TelemetrySettings.ReportStatus(component.NewFatalErrorEvent(errHTTP))
}
}()
}
Expand Down Expand Up @@ -188,7 +188,7 @@ func (sr *swReceiver) startCollector(host component.Host) error {
go func() {
defer sr.goroutines.Done()
if errGrpc := sr.grpc.Serve(gln); !errors.Is(errGrpc, grpc.ErrServerStopped) && errGrpc != nil {
host.ReportFatalError(errGrpc)
sr.settings.TelemetrySettings.ReportStatus(component.NewFatalErrorEvent(errGrpc))
}
}()
}
Expand Down

0 comments on commit d003094

Please sign in to comment.