Skip to content

Conversation

@Paramadon
Copy link
Contributor

Description of the issue

Adds TestFindReceiversInConfigCalled unit test to ensure FindReceiversInConfig is called for metrics configuration in the host pipeline translator.

Description of changes

This test validates that adapter receivers (cpu, mem, diskio, net, statsd, etc.) are properly discovered and categorized into their respective pipelines (host, hostCustomMetrics, hostDeltaMetrics). This prevents accidental removal of critical receiver discovery logic.

@Paramadon Paramadon requested a review from a team as a code owner October 20, 2025 20:20
@Paramadon Paramadon added the ready for testing Indicates this PR is ready for integration tests to run label Oct 20, 2025
// This ensures adapter receivers are properly discovered and categorized into their respective pipelines.
// Only remove this test if the FindReceiversInConfig call is replaced with an alternative mechanism and all
// downstream tests continue to pass.
func TestFindReceiversInConfigCalled(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I understand the purpose of this test. How is it different than the TestTranslators test above it? All of the same test cases are covered.

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

Labels

ready for testing Indicates this PR is ready for integration tests to run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants