"rabbitmq-queues peek" CLI output becomes unreadable when a message has a large header

Author: cvuillemezCreated Sep 9, 2026Updated Sep 9, 2026
Labelsusability

Describe the bug

Large message header is a bad client behavior and CLI is very helpful to debug and see it. But there is no limit on displaying header content, so output can have very long line separators (made of hundred or thousand characters "|" , depending only to header size). Like the "body" key, it would be great to set a max value .

Reproduction steps

1.Publish a message with a big header value (here it has 100 bytes) 2. Use CLI to display it:

┌─────────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ keys │ values │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ message_id │ msg-1788943395-0 │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ delivery_mode │ 1 │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ content_type │ text/plain │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ routing_keys │ test │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ exchange │ │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ payload (max 64 bytes) │ test-long-body-test-long-body-test-long-body-test-long-body-test │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ header.big-header-1 │ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX │ ├─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ header.x-delivery-count │ 0 │ └─────────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────┘

Expected behavior

Set a max header value display , e.g. 64 bytes.

Additional context

No response

Source: rabbitmq/rabbitmq-server