Skip to content

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.

@evan-bradley
Copy link
Contributor Author

@atoulme Could you take a quick look?

@github-actions
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
@github-actions github-actions bot added this to the next release milestone Sep 11, 2024
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…telemetry#34349)

**Description:**

Follow-up to
open-telemetry#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.

---------

Co-authored-by: Evan Bradley <[email protected]>
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