Skip to content

[receiver/discovery] Emit evaluation entities by the endpoint tracker #4728

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

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

dmitryax
Copy link
Contributor

This change consolidates the entity emitting in one place: the endpoint tracker. Once the evaluation succeeds, the endpoint attributes are updated in the correlation store, and the new entity state is emitted immediately. Every subsequent state is emitted with all the added attributes.

Currently, we emit a superset of all the attributes that were previously emitted on a regular basis or during evaluation. Later, we will reduce the set and remove redundant attributes.

The tests are kept with minimal changes to ensure no attributes are lost in the emitted entities.

@dmitryax dmitryax requested review from a team as code owners April 25, 2024 17:12
@dmitryax dmitryax force-pushed the use-entity-state-to-report-evaluations branch 4 times, most recently from 72450c3 to 8ff911f Compare April 25, 2024 18:22
@dmitryax dmitryax requested a review from a team as a code owner April 25, 2024 18:22
@crobert-1
Copy link
Contributor

Should this include a changelog entry?

@dmitryax
Copy link
Contributor Author

dmitryax commented Apr 25, 2024

Should this include a changelog entry?

I'm not sure about this. The only difference with this change is that we are sending more attributes (a superset across endpoint states and evaluations). We will need to significantly change the set of attributes later on, so I would postpone that changelog item to avoid polluting it. Let me know WDYT

@crobert-1
Copy link
Contributor

I'm not sure about this. The only difference with this change is that we are sending more attributes (a superset across endpoint states and evaluations). We will need to significantly change the set of attributes later on, so I would postpone that changelog item to avoid polluting it. Let me know WDYT

If this affects billing by sending more attributes then we should log it, otherwise it's okay with me to skip.

@dmitryax
Copy link
Contributor Author

All the entity events at this point are not expected to go outside of the collector. They are either consumed by the the discovery config provider or logged out with debug exporter

@dmitryax dmitryax force-pushed the use-entity-state-to-report-evaluations branch from 8ff911f to 9e986a0 Compare April 25, 2024 19:58
This change consolidates the entity emitting in one place: endpoint tracker. Once the evaluation succeeds, the endpoint attributes are updated in the correlation store and the new entity state is emitted right away. Every subsequent state is emitted with all the added attributes.

The tests are kept with minimal changes to ensure that no attributes are lost in the emitted entities.

Currently, we emit superset of all the attributes that were previously emitted on regular basis or on the evaluation. Later, we will reduce the set and remove redundant attributes.
@dmitryax dmitryax force-pushed the use-entity-state-to-report-evaluations branch from 9e986a0 to ef46c5b Compare April 25, 2024 20:20
@dmitryax dmitryax merged commit 2d02663 into main Apr 25, 2024
27 checks passed
@dmitryax dmitryax deleted the use-entity-state-to-report-evaluations branch April 25, 2024 21:49
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 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