Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mwear committed Apr 5, 2022
1 parent cb6a091 commit c9ff557
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion component/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import "go.opentelemetry.io/collector/config"

type StatusReport struct {
ComponentID config.ComponentID
Message string
Error error
}

Expand Down
5 changes: 0 additions & 5 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,8 @@ func newService(set *svcSettings) (*service, error) {

func (srv *service) Start(ctx context.Context) error {
srv.telemetry.Logger.Info("Starting status reporters...")
// For testing, IRL components will register status reporters
srv.statusReporters.Start()

srv.RegisterStatusReporter(func(status component.StatusReport) {
srv.telemetry.Logger.Info(fmt.Sprintf("The status is %v", status))
})

srv.telemetry.Logger.Info("Starting extensions...")
if err := srv.builtExtensions.StartAll(ctx, srv); err != nil {
return fmt.Errorf("failed to start extensions: %w", err)
Expand Down

0 comments on commit c9ff557

Please sign in to comment.