getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.15k stars 4.2k forks source link

Multiline metadata (`leakTrace`) in Issue UI is not readable because newline formatting is not applied #80535

Closed cstavitsky closed 1 day ago

cstavitsky commented 1 day ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Send a leakTrace to Sentry (valid per https://github.com/square/leakcanary/issues/2119)
  2. Check the event JSON -- newlines are formatted properly
  3. Observe the event metadata in the Sentry Issue UI. The newlines are not preserved in the UI

(I'm guessing this might be a problem with general multiline metadata formatting in Sentry and have nothing to do directly with leakTrace?)

Expected Result

leakTrace should be formatted readably with newlines like in the image from the above linked GitHub issue

Actual Result

In Issue UI (not readable, is this a bug?)

Image

In JSON (readable as expected)

Image

Product Area

Issues

Link

No response

DSN

No response

Version

No response

getsantry[bot] commented 1 day ago

Auto-routing to @getsentry/product-owners-issues for triage ⏲️