From 38a8e298cfdf5a74a4540d4eb447212db6067923 Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Tue, 23 Apr 2024 14:03:44 +0200 Subject: [PATCH] updated to 0.99 signatures --- internal/pkg/otel/run.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/pkg/otel/run.go b/internal/pkg/otel/run.go index d64e06e320c..356688dffd6 100644 --- a/internal/pkg/otel/run.go +++ b/internal/pkg/otel/run.go @@ -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)