Skip to content

Commit

Permalink
fix(windows): Recognize opamp as a config provider
Browse files Browse the repository at this point in the history
  • Loading branch information
rnishtala-sumo committed May 3, 2024
1 parent 5938b1d commit 66ba16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/1570.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(windows): Recognize opamp as a config provider
2 changes: 1 addition & 1 deletion otelcolbuilder/cmd/collector_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 66ba16d

Please sign in to comment.