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

[configgrpc] Replace deprecated ToClientConn and ToServer with new API #11271

Merged

Conversation

jade-guiton-dd
Copy link
Contributor

@jade-guiton-dd jade-guiton-dd commented Sep 25, 2024

Description

ClientConfig.ToClientConn and ServerConfig.ToServer were deprecated in v0.110.0 in favor of ClientConfig.ToClientConnWithOptions and ServerConfig.ToServerWithOptions which use a more flexible option type (#11069). The original functions are now removed, and the new ones are renamed to the old names. The WithOptions names are kept as deprecated aliases for now.

Note: The "4 lines missing coverage" are from the WithOptions function aliases.

Link to tracking issue

Updates #9480

Next steps

  • collector-contrib will need to be updated to rename uses of the WithOptions functions
  • The newly deprecated aliases will then need to be removed in the next release

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 91.41%. Comparing base (9811830) to head (01d5859).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
config/configgrpc/configgrpc.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11271      +/-   ##
==========================================
- Coverage   91.42%   91.41%   -0.01%     
==========================================
  Files         424      424              
  Lines       20188    20182       -6     
==========================================
- Hits        18456    18450       -6     
- Misses       1348     1350       +2     
+ Partials      384      382       -2     

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

@jade-guiton-dd jade-guiton-dd marked this pull request as ready for review September 25, 2024 11:22
@jade-guiton-dd jade-guiton-dd requested a review from a team as a code owner September 25, 2024 11:22
@bogdandrutu bogdandrutu merged commit 40396d5 into open-telemetry:main Sep 27, 2024
65 of 66 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 27, 2024
jackgopack4 pushed a commit to jackgopack4/opentelemetry-collector that referenced this pull request Oct 8, 2024
open-telemetry#11271)

#### Description

`ClientConfig.ToClientConn` and `ServerConfig.ToServer` were deprecated
in v0.110.0 in favor of `ClientConfig.ToClientConnWithOptions` and
`ServerConfig.ToServerWithOptions` which use a more flexible option type
(open-telemetry#11069). The original functions are now removed, and the new ones are
renamed to the old names. The `WithOptions` names are kept as deprecated
aliases for now.

Note: The "4 lines missing coverage" are from the `WithOptions` function
aliases.

#### Link to tracking issue
Updates open-telemetry#9480

#### Next steps

- `collector-contrib` will need to be updated to rename uses of the
`WithOptions` functions
- The newly deprecated aliases will then need to be removed in the next
release
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.

2 participants