Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Add implementation of new AvailableComponents message #340

Merged
merged 13 commits into from
Jan 27, 2025

Conversation

mrsillydog
Copy link
Contributor

Implements the specification added to opamp-spec in open-telemetry/opamp-spec#201

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 95.38462% with 3 lines in your changes missing coverage. Please review.

Project coverage is 78.29%. Comparing base (e6fac32) to head (6cb83a6).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
client/internal/clientcommon.go 92.30% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #340      +/-   ##
==========================================
+ Coverage   77.81%   78.29%   +0.47%     
==========================================
  Files          25       25              
  Lines        2321     2386      +65     
==========================================
+ Hits         1806     1868      +62     
- Misses        408      410       +2     
- Partials      107      108       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrsillydog mrsillydog marked this pull request as ready for review January 15, 2025 15:56
@mrsillydog mrsillydog requested a review from a team as a code owner January 15, 2025 15:56
@mrsillydog
Copy link
Contributor Author

Comfortable moving this into Ready for Review - have successfully manually tested this implementation end-to-end with a custom build of the OpAMP Supervisor and OpAMP extension in open-telemetry/opentelemetry-collector-contrib.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM. Just one question on an edge case remaining.

@tigrannajaryan tigrannajaryan enabled auto-merge (squash) January 27, 2025 15:07
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

Thanks @mrsillydog !

@tigrannajaryan tigrannajaryan merged commit 2ecac8d into open-telemetry:main Jan 27, 2025
11 checks passed
@mrsillydog mrsillydog deleted the feat/available-components branch January 27, 2025 15:08
evan-bradley pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Feb 28, 2025
…#37250)

#### Description
This feature implements support for the new AvailableComponents message
in opamp-go for the OpAMP supervisor:
open-telemetry/opamp-go#340

~~Since the AvailableComponents message has not yet been released, this
PR contains replace directives for testing purposes. This PR will not be
merged until opamp-go has been released with the new AvailableComponents
message implementation, at which point the replace directives will be
removed.~~ opamp-go v0.19.0 has been released.

This PR is one of two that make up
#37248

#### Link to tracking issue
Fixes
#37247

#### Testing
Updated unit tests
Manual end-to-end testing using the OpAMP extension and an external
OpAMP server.

#### Documentation
Updated README

---------

Co-authored-by: Daniel Jaglowski <jaglows3@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants