Skip to content

Commit

Permalink
fixed breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Feb 13, 2024
1 parent 3f95229 commit 1541374
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/otel/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ func newSettings(version string, configPaths []string) (*otelcol.CollectorSettin
Description: buildDescription,
Version: version,
}
converterSet := confmap.ConverterSettings{}
configProviderSettings := otelcol.ConfigProviderSettings{
ResolverSettings: confmap.ResolverSettings{
URIs: configPaths,
Providers: makeMapProvidersMap(fileprovider.New(), envprovider.New(), yamlprovider.New(), httpprovider.New(), httpsprovider.New()),
Converters: []confmap.Converter{expandconverter.New()},
Converters: []confmap.Converter{expandconverter.New(converterSet)},
},
}
provider, err := otelcol.NewConfigProvider(configProviderSettings)
Expand Down

0 comments on commit 1541374

Please sign in to comment.