kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

Show truncated message or hide message body when message size is large

Open tigerinus opened this issue 3 years ago • 2 comments

Is your proposal related to a problem?

Most of the time I only want to see headers of each message. However each message in the queue can be as large as 512KB. Expanding such message in Kafka UI causes web to hang.

Describe the solution you'd like

Assuming it's the web UI parsing the large message causing the hang, I propose:

  1. Truncate the message body when it is large, or just output raw body without JSON formatting.
  2. Separate header display and body display. Show header with message body collapsed.

Describe alternatives you've considered

https://github.com/birdayz/kaf - a great CLI tool - but I guess I still prefer Kafka-UI to address the issue.

Additional context

tigerinus avatar May 10 '22 15:05 tigerinus

Hey, thanks for the suggestion. We'll think of something to solve this.

Haarolean avatar May 12 '22 13:05 Haarolean

related https://github.com/provectus/kafka-ui/issues/2297#issue-1309183097

Haarolean avatar Jul 19 '22 11:07 Haarolean