From 0ae86a627e040815a055ef5f4c22412ca40066ba Mon Sep 17 00:00:00 2001 From: michel-laterman Date: Thu, 6 Jun 2024 13:50:46 -0700 Subject: [PATCH] cleanup --- internal/pkg/otel/run.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/internal/pkg/otel/run.go b/internal/pkg/otel/run.go index fc7cc5f4b45..46374fee458 100644 --- a/internal/pkg/otel/run.go +++ b/internal/pkg/otel/run.go @@ -68,15 +68,11 @@ func newSettings(version string, configPaths []string) (*otelcol.CollectorSettin }, }, } - provider, err := otelcol.NewConfigProvider(configProviderSettings) - if err != nil { - return nil, err - } return &otelcol.CollectorSettings{ - Factories: components, - BuildInfo: buildInfo, - ConfigProvider: provider, + Factories: components, + BuildInfo: buildInfo, + ConfigProviderSettings: configProviderSettings, // we're handling DisableGracefulShutdown via the cancelCtx being passed // to the collector's Run method in the Run function DisableGracefulShutdown: true,