net.Error.Temporary() is Deprecated in Go 1.18
In Go 1.18 the net.Error.Temporary() method we use in a few places is deprecated. We should consider removing it.
For now we upgraded to 1.18 ignoring the deprecation
I believe given the package documentation, Temporary can be replaced by Timeout since most temporary errors are just timeout. This can be fixed by a simple refactor by replacing the method with the new one. In places that we have both, we can just drop the Temporary.
We should review our production logs for the relevant error strings and check if we see something or if you are right with your replacement suggestion.
That's a good idea! I can take a look to double-check before we move ahead with the PR.