SigNoz / signoz

SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
https://signoz.io
Other
19.07k stars 1.26k forks source link

Render newlines in tag values + allow configuring to use the code viewer on tags other than 'exception.stacktrace'. #3731

Open qwerty-debug opened 1 year ago

qwerty-debug commented 1 year ago

I am using custom tags on telemetry events to keep track of some metadata. This approach mostly works as intended, except that the readability of this metadata in SigNoz is sometimes sub-par due to SigNoz not rendering newlines in tag values.

I experimented with putting
elements in the tag value as a workaround, but SigNoz renders these verbatim instead of as line breaks.

By browsing the source code I discovered that there is a hardcoded switch on the tag name so that [View full value] displays the tag value in a code viewer if and only if the tag name is 'exception.stacktrace'. This code viewer does render newlines in the tag value and it looks decent enough for my use case... except that I have more than one tag with newlines and the name 'exception.stacktrace' does not quite match my use case conceptually.

Ideally newlines in tag values would be rendered by default and the code viewer would be available for tags other than 'exception.stacktrace'... maybe by replacing the hardcoded switch with a configurable switch.

afbeelding afbeelding

welcome[bot] commented 1 year ago

Thanks for opening this issue. A team member should give feedback soon. In the meantime, feel free to check out the contributing guidelines.