Open samsp-msft opened 1 month ago
This feels very important. Makes the dashboard a bit unusable with large text values.
I am thinking something like:
TODO: Figure out an owner here.
This will also be needed for events on spans in the trace details view, as those will also have the same long messages attached.
@kvenkatrajan for assignment.
There is an initiative to use OTel to provide telemetry for LLM applications - recording the prompt and response text. These are typically long and can be plain text or json. When looking at these in the Aspire dashboard, in the trace and logs view, the details pane has a one line display with a "..." and button to copy to the dashboard.
Visual Studio debugger has the same problem when its showing variables in the watch window. It has an option to pop out the value in a modal dialog, where text can be more easily examined. We should have something similar for the dashboard.
When the text is opened in the viewer, we should have a quick mechanism to sniff to see if it looks to be json, and then provide an option to format the content as json - as it typically will not have any formatting. The VS one has the ability to do base64, url encoding/decoding. Those are probably not needed here, but JSON and possibly XML formatting would be very useful. If it fails to parse that would also be really useful to know, so spitting out the error in those cases would be good.