Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit length of variable types when displaying, add option to control #16

Open
kpvdr opened this issue May 2, 2017 · 1 comment
Open

Comments

@kpvdr
Copy link
Owner

kpvdr commented May 2, 2017

Add an option to control the maximum length of variable-length values. The output should contain all the value bytes if the length is less than the threshold, otherwise it should be shortened to the first several bytes, followed by an ellipsis, followed by the last several bytes and a length indicator. eg:

[0210] s amqp-value: binary(54 68 65 20 71 ... 36 37 38 39 2e) len=2048

A default threshold should be 50 bytes, and if greater, then the first and last 25 bytes should be shown.
This should apply to all variable types: Binary, String, Symbol, and to the compound types in both the number of elements shown and the size of each element: List, Map, Array.

kpvdr added a commit that referenced this issue May 3, 2017
… a length indicator to variable-sized elements. Improvements to format of some compound types.
@kpvdr
Copy link
Owner Author

kpvdr commented May 3, 2017

Still need to expose options to control this feature or turn it off entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant