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

Make NewClientWithEnvProxy Deprecated #3387

Conversation

nothingcompare2u
Copy link
Contributor

@nothingcompare2u nothingcompare2u commented Dec 15, 2024

The former pr: #2686

As this issue #2898 says NewClientWithEnvProxy is redundant with NewClient(nil).

var DefaultTransport RoundTripper = &Transport{
	Proxy: ProxyFromEnvironment,
	DialContext: defaultTransportDialContext(&net.Dialer{
		Timeout:   30 * time.Second,
		KeepAlive: 30 * time.Second,
	}),
	ForceAttemptHTTP2:     true,
	MaxIdleConns:          100,
	IdleConnTimeout:       90 * time.Second,
	TLSHandshakeTimeout:   10 * time.Second,
	ExpectContinueTimeout: 1 * time.Second,
}

@nothingcompare2u
Copy link
Contributor Author

nothingcompare2u commented Dec 15, 2024

@gmlewis Could you have a look?

I am sorry for submitting a premature pr before, and let me remove it.

@gmlewis
Copy link
Collaborator

gmlewis commented Dec 15, 2024

@gmlewis Could you have a look?

I am sorry for submitting a premature pr before, and let me remove it.

No, I will not accept PRs for #2898 until there is discussion in that thread that proves the original issues are resolved.

Specifically, see: #2898 (comment)

@gmlewis gmlewis added the DO NOT MERGE Do not merge this PR. label Dec 15, 2024
@gmlewis
Copy link
Collaborator

gmlewis commented Dec 15, 2024

Additionally, we try not to simply remove things, as we prefer to deprecate them first (also discussed in #2898).

@gmlewis gmlewis added the Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). label Dec 15, 2024
Copy link

codecov bot commented Dec 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.21%. Comparing base (2b8c7fa) to head (f997fcb).
Report is 198 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3387      +/-   ##
==========================================
- Coverage   97.72%   92.21%   -5.51%     
==========================================
  Files         153      173      +20     
  Lines       13390    14768    +1378     
==========================================
+ Hits        13085    13618     +533     
- Misses        215     1060     +845     
  Partials       90       90              

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

@DiegoDev2
Copy link
Contributor

Hi, maybe the issue does not have labels, it should have some that need to be reviewed or something like that, right? @gmlewis

@nothingcompare2u nothingcompare2u force-pushed the remove_newClientWithEnvProxy branch from f997fcb to a4885c7 Compare December 17, 2024 11:31
@nothingcompare2u nothingcompare2u changed the title Remove NewClientWithEnvProxy Make NewClientWithEnvProxy Deprecated Dec 17, 2024
@nothingcompare2u nothingcompare2u deleted the remove_newClientWithEnvProxy branch December 17, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). DO NOT MERGE Do not merge this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants