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

Add "fully set" flag to AgentToServer message #103

Conversation

tigrannajaryan
Copy link
Member

This is a draft PR to demonstrate how open-telemetry/opamp-spec#109
can be resolved.

The new StatusIsFullSet is set by the agent the status is fully set the message.
The server checks the flag to know if it needs to request the full status.

This is a backward compatible change. New servers that work with old agents may
make an extra request for the full status because old agents don't set this flag,
but this was already a problem in the past even before this change.

This is a draft PR to demonstrate how open-telemetry/opamp-spec#109
can be resolved.

The new StatusIsFullSet is set by the agent the status is fully set the message.
The server checks the flag to know if it needs to request the full status.

This is a backward compatible change. New servers that work with old agents may
make an extra request for the full status because old agents don't set this flag,
but this was already a problem in the past even before this change.
@tigrannajaryan
Copy link
Member Author

@andykellr please take a look.

@codecov
Copy link

codecov bot commented Jul 15, 2022

Codecov Report

Merging #103 (2f70154) into main (5911ef2) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #103      +/-   ##
==========================================
+ Coverage   75.77%   75.80%   +0.03%     
==========================================
  Files          22       22              
  Lines        1577     1579       +2     
==========================================
+ Hits         1195     1197       +2     
  Misses        288      288              
  Partials       94       94              
Impacted Files Coverage Δ
client/internal/clientcommon.go 80.97% <100.00%> (+0.10%) ⬆️
client/internal/receivedprocessor.go 79.62% <100.00%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5911ef2...2f70154. Read the comment docs.

@tigrannajaryan
Copy link
Member Author

Closing in favour of #105

@tigrannajaryan tigrannajaryan deleted the feature/tigran/add-compressed branch October 14, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant