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

[cmd/opampsupervisor] Fix ServerToAgent message field handling #34349

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

evan-bradley
Copy link
Contributor

Description:

Follow-up to #33576.

Boolean short-circuiting was causing the onMessage handler to not process the whole ServerToAgent message if it included multiple fields. I noticed this was causing the Collector to fail to start when using the opamp-go demo server; the own metrics section is required for the Collector to start since it provides the only pipelines by default.

I included a new unit test that verifies everything looks as we would expect when getting a message like what would be sent by the example server.

Copy link
Contributor

@BinaryFissionGames BinaryFissionGames left a comment

Choose a reason for hiding this comment

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

Good find, this seems to be working good generally.

cmd/opampsupervisor/supervisor/supervisor.go Outdated Show resolved Hide resolved
cmd/opampsupervisor/supervisor/supervisor_test.go Outdated Show resolved Hide resolved
@evan-bradley
Copy link
Contributor Author

@atoulme Could you take a quick look?

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@evan-bradley
Copy link
Contributor Author

@atoulme Could you take a quick look at this?

@fatsheep9146 fatsheep9146 added the ready to merge Code review completed; ready to merge by maintainers label Sep 9, 2024
@mx-psi mx-psi merged commit cb7f220 into open-telemetry:main Sep 11, 2024
167 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/opampsupervisor ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants