-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Automatically collapse long context values #58573
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-issues for triage ⏲️ |
hi! just to clarify - you're asking for the ability to collapse/expand the value field in the UI if potentially the value is too long instead of being truncated? |
Yes exactly. A long value field taking up almost a full page is difficult to read. Ideally it could be collapsed with a preview of the first x number of lines, with the ability to expand it if necessary. |
Thanks for the confirmation. This would really be two changes:
We've filed it as a feature request. If we decide to pursue it, we'll let you know! |
This sounded familiar, so I searched around and found... an issue I made but was closed due to inactivity! #48480 I think the issue here is not about truncation, since the event still has valid json to display, but that arrays are not being collapsed when they should. See here for a screenshot of it in action We won't add collapsing as an SDK option, but we can certainly collapse long array values by default. |
) Fixes #58573, #48480 Previously, objects/arrays were only collapsible after they reached maxDefaultDepth. The major change here is that now each level is collapsible - Each level is now always collapsible. Before, objects/arrays were only collapsible after a certain depth - Arrays/objects begin collapsed when there are more than 5 items, in addition to when they are at a certain depth - Changed the appearance and location of the toggle buttons to better match commonly-used json viewers - Added `n items` preview text for collapsed objects/arrays (which is clickable!)
Problem Statement
Doing
Sentry.setContext('title', { value })
, if it goes beyond a certain length, we wantvalue
to be collapsed in the UI and not truncated. Otherwise a long array could take up a page of space on the screen. Could we have this configurable as an option tosetContext
?Solution Brainstorm
No response
Product Area
Issues
┆Issue is synchronized with this Jira Improvement by Unito
The text was updated successfully, but these errors were encountered: