From 76b58308656bfa5533a28e1a61f6cf3ecbef5520 Mon Sep 17 00:00:00 2001 From: Raj Nishtala <113392743+rnishtala-sumo@users.noreply.github.com> Date: Fri, 3 May 2024 14:37:17 -0400 Subject: [PATCH] fix(windows): Recognize opamp as a config provider (#1570) --- .changelog/1570.fixed.txt | 1 + otelcolbuilder/cmd/collector_windows.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .changelog/1570.fixed.txt diff --git a/.changelog/1570.fixed.txt b/.changelog/1570.fixed.txt new file mode 100644 index 0000000000..284181ad52 --- /dev/null +++ b/.changelog/1570.fixed.txt @@ -0,0 +1 @@ +fix(windows): Recognize opamp as a config provider \ No newline at end of file diff --git a/otelcolbuilder/cmd/collector_windows.go b/otelcolbuilder/cmd/collector_windows.go index 8767d44207..b8cd2b752e 100644 --- a/otelcolbuilder/cmd/collector_windows.go +++ b/otelcolbuilder/cmd/collector_windows.go @@ -241,7 +241,7 @@ func updateSettingsUsingFlags(set *otelcol.CollectorSettings, flags *flag.FlagSe // Provide a default set of providers and converters if none have been specified. // TODO: Remove this after CollectorSettings.ConfigProvider is removed and instead // do it in the builder. - if len(resolverSet.Providers) == 0 && len(resolverSet.Converters) == 0 { + if len(resolverSet.ProviderFactories) == 0 && len(resolverSet.ConverterFactories) == 0 { set.ConfigProviderSettings = newDefaultConfigProviderSettings(resolverSet.URIs) } }