grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
61.77k stars 11.77k forks source link

Allow user to provide a custom visualization for default Tempo Trace view #82590

Open gelicia opened 5 months ago

gelicia commented 5 months ago

Discussed in https://github.com/grafana/grafana/discussions/70876

Originally posted by **mkaisercross** June 28, 2023 I'd like to make a UI change to the default view for Tempo traces. I am fairly new to Grafana so apologies if some of the terminology I use is not correct. Currently if you click on a traceId link in Grafana it will opens a default Tempo view with the query area above and span tree visualization below. What I'd like to be able to do is provide a custom span tree. I'd like the same query area to be shown above just with a custom span tree below. And this new layout would be shown anytime you click traceId link from anywhere in Grafana (Tempo, Loki, or Mimir). To give some context here are some of the changes I have in mind: 1. Above span tree show total # of child spans with errors 2. Highlight spans in red with a status code > 400 and also spans with db errors returned 3. In each span row show a unique SVG icon pertaining to the type of span (e.g. DB, HTTP, etc) Would something like this be possible and if not if there are any plans to offer customization of the default views in the future?
aocenas commented 5 months ago

@mkaisercross at this moment there is no way to specify what implementation of visualization to use in Explore and that way swap default TraceView. This was considered some time ago but it isn't a priority and so not sure when or if ever this will be implemented.