diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d2dcf3d9123..842d84816676 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ - `skywalkingreceiver`: Add new skywalking receiver component folder and structure (#8107) - `groupbyattrsprocesor`: Allow empty keys, which allows to use the processor for compaction (#7793) - `datadogexporter`: Add rbac to example k8s manifest file (#8186) +- `splunkhecexporter`: Add validation for `sending_queue` setting (#8256) ### 🛑 Breaking changes 🛑 diff --git a/exporter/splunkhecexporter/config.go b/exporter/splunkhecexporter/config.go index 0d4b88d557a2..26868031e2c3 100644 --- a/exporter/splunkhecexporter/config.go +++ b/exporter/splunkhecexporter/config.go @@ -142,6 +142,10 @@ func (cfg *Config) getURL() (out *url.URL, err error) { return } +// Validate checks if the exporter configuration is valid. func (cfg *Config) Validate() error { + if err := cfg.QueueSettings.Validate(); err != nil { + return fmt.Errorf("sending_queue settings has invalid configuration: %w", err) + } return nil }