Skip to content

Commit

Permalink
Replace host.ReportFatalError with ReportStatus in rcvr_namedpipe
Browse files Browse the repository at this point in the history
host.ReportFatalError() was deprecated and removed.  Update
Windows named pipe startup code to use ReportStatus() instead.

open-telemetry/opentelemetry-collector#6344
open-telemetry/opentelemetry-collector#9506

Signed-off-by: Jeff Hostetler <[email protected]>
  • Loading branch information
jeffhostetler committed Mar 6, 2024
1 parent 38e4143 commit ab0c1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcvr_namedpipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (rcvr *Rcvr_NamedPipe) Start(unused_ctx context.Context, host component.Hos

err = rcvr.openNamedPipeServer(listenQueueSize)
if err != nil {
host.ReportFatalError(err)
rcvr.Base.Settings.TelemetrySettings.ReportStatus(component.NewFatalErrorEvent(err))
return err
}

Expand Down

0 comments on commit ab0c1a6

Please sign in to comment.