Skip to content

Conversation

@remo-lab
Copy link

Description

This PR adds duplicate validation for receivers and exporters in PipelineConfig.Validate() to align with the existing processor validation logic.

  • Bug: Duplicate receivers or exporters in a pipeline configuration were not validated, allowing invalid configs to pass.
  • Fix: Added duplicate checks for receivers and exporters, with error messages consistent with processor validation.
  • Impact: Prevents invalid configurations from passing validation, improving reliability and consistency of pipeline setup.

Testing

  • Added unit tests in service/pipelines/config_test.go:
  • duplicate-receiver-reference
  • duplicate-exporter-reference
  • Verified that invalid configs with duplicate receivers/exporters now fail validation with appropriate error messages.
  • Ran go test ./service/pipelines -v and go test ./... to confirm no regressions.
  • screenshot of terminal is attached below:
Screenshot 2025-12-18 233521

Documentation

  • No new documentation required.
  • Validation behavior is now consistent across receivers, processors, and exporters.

👉 With this filled‑out template, your PR will look polished and aligned with their contribution guidelines.
Would you like me to also draft the GitHub issue text (Bug report template with reproduction, expected vs actual, proposed fix) so you can open the issue first and then link it here with Fixes #? That way your PR will be complete and traceable.

@remo-lab remo-lab requested a review from a team as a code owner December 18, 2025 18:06
@remo-lab remo-lab requested a review from bogdandrutu December 18, 2025 18:06
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 18, 2025

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: remo-lab / name: remo-lab (2964eb2)

@remo-lab
Copy link
Author

remo-lab commented Dec 18, 2025

Hi @bogdandrutu @bboreham , I just wanted to kindly follow up on this PR. It adds duplicate validation for receivers and exporters in PipelineConfig.Validate(), consistent with processor checks, and includes unit tests to confirm the fix.
Whenever you have a chance, I’d be grateful if you could take a look. Thank you for your time and support!

@remo-lab
Copy link
Author

Hi @bogdandrutu could you please approve this pr?

}

// Validate no receivers are duplicated within a pipeline.
recvSet := make(map[component.ID]struct{}, len(cfg.Receivers))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than duplicating code, how about having an internal method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants