How to create summary of traces without needing to open subspans?

So, I am exploring OpenTelemetry in combination with Grafana Tempo cloud.

I got my spans uploaded, and in Grafana cloud I see a nice overview of the traces.

Now I am looking to actually make this data useful. So I was expecting to easily list all the main traces with a few span attribute columns in a nice overview.
However, I am not able to do that.

The only thing I can get is a table with some predefined trace fields, and then expandable sub spans that show the fields I need. I don’t want to expand traces, I just want a simple list with extra fields I am interested in.

So what I am looking for is:

trace id | start time | service | name | duration | span custom field | span custom field |

However, I get:

trace id | start time | service | name | duration | 
>  span id | start time | service | name | duration |  span custom field | span custom field

My TraceQL query is:

{resource.service.name="service" && span.foo != nil && span.bar != nil} | select ( span.foo , span.bar)

And I use a Table in Grafana.

Am I crazy? Why can’t I just get a list of stuff I want? I don’t care about the subspans, I only care about the whole trace, and some subspan attributes.

Is this possible at all?

Also, I cant seem to rename the custom span titles from foo to Human Readable in Grafana or TraceQL?

Ah, I got a little further now. In Options in the query there is a selector for Table format which can change to Spans.

1 Like

So, I got a lot further, but when switching to Spans, the displayed duration is from the span, not from the trace…

So how can I show span attributes from subspans while also displaying total trace duration? (Summarize the trace basically)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.