3 ms·
How do you identify which network call is the one that timed out?
by hamandcheese 3y ago
How do you identify which network call is the one that timed out?
- zer00eyz 3y agoYour errors have messages, most of the time your "did not connect" error gets caught inside your "DiscountService" And returns a "could not connect to discount service error" ... Its funny that were having this conversation because "discount service" is a thing in my life. Its sporadic failures means I just re-try immediately and get a success... Errors are part of flow control.
- Thaxll 3y agoYou wrap errors with fmt.Errorf(). I work on Go daily and I don't need a stacktrace to tell me where the problem is, the error is self explanatory.