Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Jun 6, 2024
1 parent 0723e11 commit 0ae86a6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions internal/pkg/otel/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0ae86a6

Please sign in to comment.