HighLevelProducer produce callback only returns the offset, not partition
This is a feature request for the HighLevelProducer that was pulled from node-rdkafka.
The produce method accepts a callback that only returns the offset of the produced message from what I can tell. It would be very handy if the callback also return the partition the message was produced to not just the offset (or the whole delivery report payload).
Relevant code section (I believe): https://github.com/confluentinc/confluent-kafka-javascript/blob/df74c29fea91ad083049db8bbc53d2c86789d9bd/lib/producer/high-level-producer.js#L162
I know the delivery-report can be hooked into directly, but because that is an event emitted it's not in the same stack as the actual produce call, so requires more orchestration to tie back to when the produce was called.
My exact use case is for writing custom instrumentation for our observability platform. The only method on the producer I am capturing is the produce itself, which is missing the partition at that point.