Skip to content

Commit

Permalink
Fix deprecation notice version for extensionheleper and componenhelper (
Browse files Browse the repository at this point in the history
open-telemetry#4921)

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Feb 25, 2022
1 parent 7bdb684 commit 805224d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions component/componenthelper/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions extension/extensionhelper/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 805224d

Please sign in to comment.