Skip to content

Commit

Permalink
Remove deprecated funcs and types from component
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Jan 12, 2024
1 parent 83d463c commit 65a585f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions component/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ func NewFatalErrorEvent(err error) *StatusEvent {
return ev
}

// Deprecated: [v0.92.0] use directly func(*StatusEvent) error.
type StatusFunc = func(*StatusEvent) error

// AggregateStatus will derive a status for the given input using the following rules in order:
// 1. If all instances have the same status, there is nothing to aggregate, return it.
// 2. If any instance encounters a fatal error, the component is in a Fatal Error state.
Expand Down
7 changes: 0 additions & 7 deletions component/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ type TelemetrySettings struct {
// Resource contains the resource attributes for the collector's telemetry.
Resource pcommon.Resource

// ReportComponentStatus allows a component to report runtime changes in status. The service
// will automatically report status for a component during startup and shutdown. Components can
// use this method to report status after start and before shutdown.
// Deprecated: [v0.92.0] This function will be removed in a future release.
// Use ReportStatus instead.
ReportComponentStatus func(*StatusEvent) error

// ReportStatus allows a component to report runtime changes in status. The service
// will automatically report status for a component during startup and shutdown. Components can
// use this method to report status after start and before shutdown.
Expand Down

0 comments on commit 65a585f

Please sign in to comment.