Skip to content

Commit

Permalink
updated to 0.99 signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Apr 23, 2024
1 parent 366c0bd commit 38a8e29
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions internal/pkg/otel/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,15 @@ func newSettings(version string, configPaths []string) (*otelcol.CollectorSettin
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(converterSet)},
URIs: configPaths,
Providers: makeMapProvidersMap(
fileprovider.NewFactory().Create(confmap.ProviderSettings{}),
envprovider.NewFactory().Create(confmap.ProviderSettings{}),
yamlprovider.NewFactory().Create(confmap.ProviderSettings{}),
httpprovider.NewFactory().Create(confmap.ProviderSettings{}),
httpsprovider.NewFactory().Create(confmap.ProviderSettings{}),
),
Converters: []confmap.Converter{expandconverter.NewFactory().Create(converterSet)},
},
}
provider, err := otelcol.NewConfigProvider(configProviderSettings)
Expand Down

0 comments on commit 38a8e29

Please sign in to comment.