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

[receiver/discovery] Do not emit endpoint that are not evaluated yet #5032

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

dmitryax
Copy link
Contributor

This change fixes the issue when "unknown" service can be shown in the inventory service right at the collector startup. We don't want to send entity events for endpoints that are not evaluated yet

@dmitryax dmitryax requested review from a team as code owners June 27, 2024 00:33
@dmitryax dmitryax force-pushed the dont-emit-not-evaluated-endpoints branch from 2b406f2 to d320a3d Compare June 27, 2024 01:04
@dmitryax dmitryax requested a review from a team as a code owner June 27, 2024 01:04
Copy link
Contributor

@crobert-1 crobert-1 left a comment

Choose a reason for hiding this comment

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

Should we add a bug fix changelog entry?

@dmitryax dmitryax force-pushed the dont-emit-not-evaluated-endpoints branch from d320a3d to 23dc993 Compare June 27, 2024 16:36
@dmitryax
Copy link
Contributor Author

Should we add a bug fix changelog entry?

Added

Copy link
Contributor

@crobert-1 crobert-1 left a comment

Choose a reason for hiding this comment

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

Are there any tests that show the entityStateEvents method is not emitting entity events for endpoints without a status attribute? If not, can we add one?

This change fixes the issue when "unknown" service can be shown in the inventory service right at the collector startup. We don't want to send entity events for endpoints that are not evaluated yet
@dmitryax dmitryax force-pushed the dont-emit-not-evaluated-endpoints branch from 23dc993 to 6306099 Compare June 27, 2024 18:57
@dmitryax
Copy link
Contributor Author

dmitryax commented Jun 27, 2024

Sure. Updated TestEntityEmittingLifecycle

@dmitryax dmitryax merged commit a43ec90 into main Jun 27, 2024
51 checks passed
@dmitryax dmitryax deleted the dont-emit-not-evaluated-endpoints branch June 27, 2024 21:54
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants