Add deprecation comment
This commit is contained in:
parent
ba128c7ed6
commit
4e10ec27f2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue