diff --git a/.chloggen/depcomponent.yaml b/.chloggen/depcomponent.yaml new file mode 100755 index 00000000000..34277cb36a6 --- /dev/null +++ b/.chloggen/depcomponent.yaml @@ -0,0 +1,20 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: "breaking" + +# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) +component: "component" + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: "Remove deprecated funcs and types" + +# One or more tracking issues or pull requests related to the change +issues: [9283] + +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [api] \ No newline at end of file diff --git a/component/status.go b/component/status.go index 8d0650b0751..8cd4d802644 100644 --- a/component/status.go +++ b/component/status.go @@ -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. diff --git a/component/telemetry.go b/component/telemetry.go index f4d0223164e..572b4bdd916 100644 --- a/component/telemetry.go +++ b/component/telemetry.go @@ -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. diff --git a/service/internal/servicetelemetry/telemetry_settings.go b/service/internal/servicetelemetry/telemetry_settings.go index 06e41c268ea..55c6b9f3962 100644 --- a/service/internal/servicetelemetry/telemetry_settings.go +++ b/service/internal/servicetelemetry/telemetry_settings.go @@ -50,10 +50,6 @@ func (s TelemetrySettings) ToComponentTelemetrySettings(id *component.InstanceID MeterProvider: s.MeterProvider, MetricsLevel: s.MetricsLevel, Resource: s.Resource, - ReportComponentStatus: func(event *component.StatusEvent) error { - statusFunc(event) - return nil - }, - ReportStatus: statusFunc, + ReportStatus: statusFunc, } }