Add deprecation comment

This commit is contained in:
Pablo Baeyens 2021-04-02 14:02:55 +02:00
parent ba128c7ed6
commit 4e10ec27f2
No known key found for this signature in database
GPG Key ID: 7075ADF4DEDD75F1
4 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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