Skip to content

Commit

Permalink
Replace delete APIs with new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Mar 26, 2024
1 parent 7dc5258 commit 28dfa60
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/pkg/otel/run.go
Expand Up @@ -56,8 +56,14 @@ 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()),
URIs: configPaths,
Providers: makeMapProvidersMap(
fileprovider.NewWithSettings(confmap.ProviderSettings{}),
envprovider.NewWithSettings(confmap.ProviderSettings{}),
yamlprovider.NewWithSettings(confmap.ProviderSettings{}),
httpprovider.NewWithSettings(confmap.ProviderSettings{}),
httpsprovider.NewWithSettings(confmap.ProviderSettings{}),
),
Converters: []confmap.Converter{expandconverter.New(converterSet)},
},
}
Expand Down

0 comments on commit 28dfa60

Please sign in to comment.