kafka-go
kafka-go copied to clipboard
Implement a wrapper for TLS Conns to add details to errors.
There are situations where a tls.Conn only reports an EOF which eventually bubbles up to the caller as an UnexpectedEOF. This error can occur for many reasons and makes debugging difficult. Let's decorate our TLS connections to allow us to add more detailed information to error messages.