Skip to content

Commit

Permalink
added shutdown function
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Jul 12, 2023
1 parent 5b6348a commit 764b59e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion otel-agent/ecs-ec2/ecsattributesprocessor/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func (f *factory) createLogsProcessor(
return nil, fmt.Errorf("invalid config for processor %s", typeStr)
}

if err := config.validate(); err != nil {
// initialise config
if err := config.init(); err != nil {
return nil, err
}

Expand All @@ -74,5 +75,6 @@ func (f *factory) createLogsProcessor(
processLogsFunc(logger, config),
processorhelper.WithCapabilities(consumerCapabilities),
processorhelper.WithStart(startFn(logger)),
processorhelper.WithShutdown(shutdownFn()),
)
}

0 comments on commit 764b59e

Please sign in to comment.