remove pterm dependency, replace with printing to stdout
The server tui functionality doesn't seem too widely used and its usefulness is limited. The pterm module has frequent updates and pulls in a few dependencies that could be left behind.
My thought is to rip pterm out and have otel-cli server tui instead print spans to the terminal, with more detail than the current text UI can show.
The result should work in more terminals, with less fuss, while showing more details.
I was hoping to have an option that would produce a stdouttrace-generated JSON file on stdout.
This option would pair very well with tools like trot or retrace so you can capture traces offline or in environments where it is very difficult to use otel in the intended way. It also allows you to view the same trace in different visualization tools like if you want to view it in otel-desktop-viewer, you can do this:
$ otel-desktop-viewer &
$ export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
$ export OTEL_TRACES_EXPORTER="otlp"
$ export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
$ retrace < /tmp/trace.json