Skip to content

Commit

Permalink
Add deprecation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-psi committed Apr 2, 2021
1 parent ba128c7 commit 4e10ec2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions exporter/exporterhelper/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func WithLogs(createLogsExporter CreateLogsExporter) FactoryOption {
}

// WithCustomUnmarshaler implements component.DeprecatedUnmarshaler.
// Deprecated, use config.Unmarshal instead.
func WithCustomUnmarshaler(customUnmarshaler component.CustomUnmarshaler) FactoryOption {
return func(o *factory) {
o.customUnmarshaler = customUnmarshaler
Expand Down
1 change: 1 addition & 0 deletions extension/extensionhelper/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type factory struct {
}

// WithCustomUnmarshaler implements component.DeprecatedUnmarshaler.
// Deprecated, use config.Unmarshal instead.
func WithCustomUnmarshaler(customUnmarshaler component.CustomUnmarshaler) FactoryOption {
return func(o *factory) {
o.customUnmarshaler = customUnmarshaler
Expand Down
1 change: 1 addition & 0 deletions processor/processorhelper/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type factory struct {
}

// WithCustomUnmarshaler implements component.DeprecatedUnmarshaler.
// Deprecated, use config.Unmarshal instead.
func WithCustomUnmarshaler(customUnmarshaler component.CustomUnmarshaler) FactoryOption {
return func(o *factory) {
o.customUnmarshaler = customUnmarshaler
Expand Down
1 change: 1 addition & 0 deletions receiver/receiverhelper/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
type FactoryOption func(o *factory)

// WithCustomUnmarshaler implements component.DeprecatedUnmarshaler.
// Deprecated, use config.Unmarshal instead.
func WithCustomUnmarshaler(customUnmarshaler component.CustomUnmarshaler) FactoryOption {
return func(o *factory) {
o.customUnmarshaler = customUnmarshaler
Expand Down

0 comments on commit 4e10ec2

Please sign in to comment.