Skip to content

Commit

Permalink
[chore][extension/zpages] ReportFatalError -> ReportStatus (#9332)
Browse files Browse the repository at this point in the history
**Description:**
Remove use of the deprecated method `ReportFatalError` in favor of using
`ReportStatus`.
  • Loading branch information
atoulme authored Jan 22, 2024
1 parent 727207b commit a952082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/zpagesextension/zpagesextension.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (zpe *zpagesExtension) Start(_ context.Context, host component.Host) error
defer close(zpe.stopCh)

if errHTTP := zpe.server.Serve(ln); errHTTP != nil && !errors.Is(errHTTP, http.ErrServerClosed) {
host.ReportFatalError(errHTTP)
zpe.telemetry.ReportStatus(component.NewFatalErrorEvent(errHTTP))
}
}()

Expand Down

0 comments on commit a952082

Please sign in to comment.