title: Akka Streams Kafka error handling - access to element that caused the problem in Kafka Producer
body: <p>I see for example exception like this:</p>
  
  <pre><code>org.apache.kafka.common.errors.RecordTooLargeException: The message is 10000190 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.
  </code></pre>
  
  <p>Is there a way to know more about a ProducerRecord that caused this exception?</p>
  
  <p>In <code>Supervisor</code> or <code>recoverWith</code> I have only info about exception.
  I can't wrap anything with <code>try catch</code>, because I'm using built in Kafka Flow or Kafka Sink. Probably I'd need to give up with this integration and use Kafka producer manually, because I see no other solution.</p>