Skip to content

Commit

Permalink
chore: fixes usage of post config changes in collector.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs committed Nov 15, 2021
1 parent ac89dd1 commit f42f5a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"go.uber.org/zap"

"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/config"
"go.opentelemetry.io/collector/config/configunmarshaler"
"go.opentelemetry.io/collector/extension/ballastextension"
"go.opentelemetry.io/collector/service/internal"
Expand Down Expand Up @@ -192,7 +193,7 @@ func (col *Collector) setupConfigurationComponents(ctx context.Context) error {

if postProcessor, ok := col.set.ConfigMapProvider.(ConfigPostProcessor); ok {
// Here we modify the config to be able to manipulate processors and pipelines
postProcessor.Process(cfg)
postProcessor.Process(col.cfgW.cfg)
}

col.logger.Info("Applying configuration...")
Expand Down

0 comments on commit f42f5a6

Please sign in to comment.