Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialize event-combine processor with the full list of processors #327

Merged
merged 1 commit into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ require (
github.com/guptarohit/asciigraph v0.5.6
github.com/hairyhenderson/gomplate/v3 v3.11.5
github.com/hashicorp/consul/api v1.25.1
github.com/hashicorp/go-plugin v1.4.9
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/huandu/xstrings v1.4.0
github.com/influxdata/influxdb-client-go/v2 v2.12.3
Expand Down Expand Up @@ -104,7 +105,6 @@ require (
github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd // indirect
github.com/hairyhenderson/go-fsimpl v0.0.0-20220529183339-9deae3e35047 // indirect
github.com/hairyhenderson/yaml v0.0.0-20220618171115-2d35fca545ce // indirect
github.com/hashicorp/go-plugin v1.4.9 // indirect
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
Expand Down Expand Up @@ -200,7 +200,7 @@ require (
github.com/hairyhenderson/toml v0.4.2-0.20210923231440-40456b8e66cf // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-hclog v1.5.0
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
Expand Down
2 changes: 1 addition & 1 deletion pkg/formatters/event_combine/event_combine.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (p *combine) Init(cfg any, opts ...formatters.Option) error {
formatters.WithLogger(p.logger),
formatters.WithTargets(p.targetsConfigs),
formatters.WithActions(p.actionsDefinitions),
formatters.WithProcessors(p.actionsDefinitions),
formatters.WithProcessors(p.processorsDefinitions),
)
if err != nil {
return fmt.Errorf("failed initializing event processor '%s' of type='%s': %v", proc.Name, epType, err)
Expand Down
1 change: 1 addition & 0 deletions pkg/formatters/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func MakeEventProcessors(
WithLogger(logger),
WithTargets(tcs),
WithActions(acts),
WithProcessors(ps),
)
if err != nil {
return nil, fmt.Errorf("failed initializing event processor '%s' of type='%s': %w", epName, epType, err)
Expand Down
Loading