Open
Description
Is your feature request related to a problem? Please describe.
Currently, there are many errors that do not provide certain metadata. For example, TOPIC_AUTHORIZATION_FAILED does not provide the topic(s) that failed to authorize. We provide our producer with multiple brokers and use sendBatch to send to multiple topics. It appears that some messages go through to one broker but not another but a lot of research needs to be done to figure out the problematic topic(s). It would be nice if the error message provided more information for diagnosing issues.
Describe the solution you'd like
For error messages related to producing or consuming from topics it would be useful to have the topics that caused the error in the error.