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

[unrevert][config{grpc,http}] Add warning when using unspecified address #6421

Merged
merged 6 commits into from
Nov 3, 2022

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Oct 27, 2022

Description: <Describe what has changed.
Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.>

Unrevert #6267 and make it so that we never error out.

Add support for : and :<port> address types

Link to tracking Issue: Fixes #6406

…telemetry#6267)

* [config/config{grpc,http}] Add warning when using a 0.0.0.0 endpoint

* Add warning when using unspecified address

* Add changelog entry

* Fix tests

* Fix HTTP tests

* Apply suggestions from code review

Co-authored-by: Alex Boten <[email protected]>

* Use IsUnspecified method

* no else after return

* Move shared code to internal

Co-authored-by: Alex Boten <[email protected]>
(cherry picked from commit 396964d)
@mx-psi mx-psi requested review from a team, dmitryax, bogdandrutu and codeboten October 27, 2022 15:20
@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Base: 91.75% // Head: 91.77% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (7e8e165) compared to base (bfc45c1).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6421      +/-   ##
==========================================
+ Coverage   91.75%   91.77%   +0.01%     
==========================================
  Files         237      238       +1     
  Lines       13638    13670      +32     
==========================================
+ Hits        12514    12546      +32     
  Misses        893      893              
  Partials      231      231              
Impacted Files Coverage Δ
config/configgrpc/configgrpc.go 89.95% <100.00%> (+0.13%) ⬆️
config/confighttp/confighttp.go 88.67% <100.00%> (+0.14%) ⬆️
config/internal/warning.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mx-psi mx-psi requested a review from bogdandrutu October 31, 2022 11:13
Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

Needs a rebase

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.

Parsing hostname:port causes breaking change
4 participants