@@ -141,7 +141,7 @@ func (m *OTelManager) Run(ctx context.Context) error {
141141
142142 newRetries := m .recoveryRetries .Add (1 )
143143 m .logger .Infof ("collector recovery restarting, total retries: %d" , newRetries )
144- proc , err = m .execution .startCollector (ctx , m .logger , m .cfg , collectorRunErr , m .statusCh )
144+ proc , err = m .execution .startCollector (ctx , m .baseLogger , m .cfg , collectorRunErr , m .statusCh )
145145 if err != nil {
146146 reportErr (ctx , m .errCh , err )
147147 // reset the restart timer to the next backoff
@@ -174,7 +174,7 @@ func (m *OTelManager) Run(ctx context.Context) error {
174174
175175 // in this rare case the collector stopped running but a configuration was
176176 // provided and the collector stopped with a clean exit
177- proc , err = m .execution .startCollector (ctx , m .logger , m .cfg , collectorRunErr , m .statusCh )
177+ proc , err = m .execution .startCollector (ctx , m .baseLogger , m .cfg , collectorRunErr , m .statusCh )
178178 if err != nil {
179179 // failed to create the collector (this is different then
180180 // it's failing to run). we do not retry creation on failure
@@ -239,7 +239,7 @@ func (m *OTelManager) Run(ctx context.Context) error {
239239 } else {
240240 // either a new configuration or the first configuration
241241 // that results in the collector being started
242- proc , err = m .execution .startCollector (ctx , m .logger , m .cfg , collectorRunErr , m .statusCh )
242+ proc , err = m .execution .startCollector (ctx , m .baseLogger , m .cfg , collectorRunErr , m .statusCh )
243243 if err != nil {
244244 // failed to create the collector (this is different then
245245 // it's failing to run). we do not retry creation on failure
0 commit comments