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

Added default funcs for configgrpc #9969

Merged

Conversation

AkhigbeEromo
Copy link
Contributor

Description:
Added newDefault methods for structs in configgrpc package

Link to tracking Issue:
Closes #9654

Testing: Tests were added for the NewDefault functions

@AkhigbeEromo AkhigbeEromo requested a review from a team as a code owner April 15, 2024 22:40
@AkhigbeEromo
Copy link
Contributor Author

Hey @TylerHelmuth, just corrected it

@AkhigbeEromo
Copy link
Contributor Author

the PR that creates a newDefault function for configauth has not been merged yet, so I can't add it to the code yet @TylerHelmuth

Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.57%. Comparing base (31528ce) to head (7b7ef39).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9969      +/-   ##
==========================================
+ Coverage   91.56%   91.57%   +0.01%     
==========================================
  Files         360      360              
  Lines       16698    16719      +21     
==========================================
+ Hits        15289    15310      +21     
  Misses       1073     1073              
  Partials      336      336              

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

Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

@AkhigbeEromo please add default functions for KeepaliveServerParameters and KeepaliveEnforcementPolicy and corresponding tests

@AkhigbeEromo
Copy link
Contributor Author

Sorry i missed that @TylerHelmuth
Hope its all okay now?

config/configgrpc/configgrpc.go Outdated Show resolved Hide resolved
config/configgrpc/configgrpc.go Outdated Show resolved Hide resolved
AkhigbeEromo and others added 4 commits April 19, 2024 18:05
Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
@AkhigbeEromo
Copy link
Contributor Author

Hello @TylerHelmuth is there any other thing you would like me to add?

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Just a couple of comments missing, otherwise looks good

config/configgrpc/configgrpc.go Outdated Show resolved Hide resolved
config/configgrpc/configgrpc.go Show resolved Hide resolved
config/configgrpc/configgrpc.go Show resolved Hide resolved
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Thanks @AkhigbeEromo!

@codeboten codeboten merged commit 1a5da25 into open-telemetry:main Apr 26, 2024
49 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 26, 2024
andrzej-stencel pushed a commit to andrzej-stencel/opentelemetry-collector that referenced this pull request May 27, 2024
Description:
Added newDefault methods for structs in configgrpc package

Closes open-telemetry#9654

Testing: Tests were added for the NewDefault functions

---------

Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
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.

[configgrpc] Add NewDefault* functions for all config structs
3 participants