Open neopaf opened 1 year ago
UI option:
<a download=test2.cap href="data:application/data,%3Cscript%3Ealert%28%27hi%27%29%3B%3C%2Fscript%3E">test2.cap</a>
My messages are relatively short, about 600 bytes. This will manage.
I would recommend making use of Link Patterns feature in the UI. You can build a small http service that will do whatever you need with the data, and Jaeger UI will show a link to that service.
Your actual proposal is not feasible, because both OpenTracing API and Java SDK are retired, and even if they were not, the use case is too specific to warrant changes in the logging API.
Requirement
As a software developer I write external communications of our system to log entries inside span. Information is in binary form, so currently I do it this way:
To see and analyse this information ideal tool is Wireshark, where same stuff looks like this:
Currently to open things in Wireshark I need to manually convert that hex to a Wireshark-friendly format:
And then open it
And specify some options, without which Wireshark does not show things right
This is cumbersome and inconvenient.
I'd like a feature of SOMEHOW be able to log information in binary form, which would ideally be downloadable.
Then I would create .pcap information, including ethernet/ip/tcp headers. And in UI "just click" at "request.pcap", Whireshark would open it, and I (and our Support team) would be very happy to save time analysing stuff.
I feel many users could benefit this.
Problem
Currently I feel the API call allows for anything, but UI probably would not manage binary stuff.
Proposal
API: a way to pass file name and content, options:
UI: if log contains binary info, present it as a hyperlink, by clicking on which file is downloaded with a name set in API (see above).
Open questions
No response