Showing custom trace/span attributes in table

Hey there :slight_smile:

I recently tried to create a tracing dashboard for some e2e tests i have. When using a table panel,
by default, it has columns for trace id, start time, trace name trace duration and service name.

However, I wish to have additional columns showing certain resource attributes for the trace. Is that possible?

1 Like

hi @narsssx, this can be done with select in TraceQL, and then selecting span view on the table.

here is what an example looks like:

Hey there,
Thanks for the info i tried and it worked however It was working before ,now The attributes are not showing in table .Could you please tell me a solution to get the attributes to show in table it is effecting my dashboard

1 Like

@saikumarmullapudi
Which version did you face this problem?
In 10.3 there has been a bug, which is fixed in 10.4

possible to remove a column from the output table? I don’t want the “Trace Service”

Sure, you can.
You can add a transformation (like described here: Transform data | Grafana documentation)

Search for ‘hide’ or ‘organize fields’

Then you can click on the ‘eye’ symbol to hide a column:

Hi @surajsidh @cbos, can we also do this modification of outputs on traces level other than spans level?

TraceQL operates on spans so TraceQL operations work at span level.

But you can use the Traces View in the table to view traces instead of spans

You may need to add a ‘Filter data by query refId’ to select the Query:traces before the Organize fields transformation will work. There are now two frames being returned. The second one is the streaming progress.

1 Like

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