From 805224d82cb35fed200e315df381076131602203 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Fri, 25 Feb 2022 13:39:19 -0800 Subject: [PATCH] Fix deprecation notice version for extensionheleper and componenhelper (#4921) Signed-off-by: Bogdan Drutu --- component/componenthelper/component.go | 4 ++-- extension/extensionhelper/factory.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/component/componenthelper/component.go b/component/componenthelper/component.go index f62905edf9d..9dedfe0c288 100644 --- a/component/componenthelper/component.go +++ b/component/componenthelper/component.go @@ -18,10 +18,10 @@ import ( "go.opentelemetry.io/collector/component" ) -// Deprecated: use component.StartFunc. +// Deprecated: [v0.46.0] use component.StartFunc. type StartFunc = component.StartFunc -// Deprecated: use component.ShutdownFunc. +// Deprecated: [v0.46.0] use component.ShutdownFunc. type ShutdownFunc = component.ShutdownFunc // Option represents the possible options for New. diff --git a/extension/extensionhelper/factory.go b/extension/extensionhelper/factory.go index 2613eec31a2..fbe55f3bdf4 100644 --- a/extension/extensionhelper/factory.go +++ b/extension/extensionhelper/factory.go @@ -19,16 +19,16 @@ import ( "go.opentelemetry.io/collector/config" ) -// Deprecated: [v0.45.0] not needed, will be removed soon. +// Deprecated: [v0.46.0] not needed, will be removed soon. type FactoryOption struct{} -// Deprecated: [v0.45.0] use component.ExtensionDefaultConfigFunc. +// Deprecated: [v0.46.0] use component.ExtensionDefaultConfigFunc. type CreateDefaultConfig = component.ExtensionDefaultConfigFunc -// Deprecated: [v0.45.0] use component.CreateExtensionFunc. +// Deprecated: [v0.46.0] use component.CreateExtensionFunc. type CreateServiceExtension = component.CreateExtensionFunc -// Deprecated: [v0.45.0] use component.NewExtensionFactory. +// Deprecated: [v0.46.0] use component.NewExtensionFactory. func NewFactory( cfgType config.Type, createDefaultConfig component.ExtensionDefaultConfigFunc,