Add a column configurator to the tracing table (custom span attribute columns)
Is your feature request related to a problem?
The tracing span table has a fixed set of columns. Spans carry arbitrary OTel span and resource attributes, but there is no way to put one of those attributes on screen as a column. Users who want to scan a list of spans by a domain-specific attribute (tenant, model, region, endpoint, queue, etc.) must open each span in the drawer, one at a time, or leave the product and write SQL.
Logs already solved this. Users move between the two products and expect the same control.
Describe the solution you'd like
A column configurator for the tracing table, modelled on the logs one:
- Reorder, add, remove and resize columns.
- Built-in columns from a registry (timestamp, service, operation, duration, status, trace ID, span ID, person, session, …), the same shape as
LOGS_COLUMN_REGISTRY. - Custom attribute columns: a source-prefixed shorthand (
attributes.<key>,resource_attributes.<key>) or a scalar HogQL expression, resolved server-side and only fetched while the column is on screen — thecustomColumnsmechanism inLogsQuery. - Attribute-key autocomplete from the existing tracing attribute-key endpoint, so users do not have to remember key names.
- Persist the column set per user, and store it on a saved
TracingViewso a shared view carries its columns.
Reference implementation (logs)
products/logs/frontend/components/LogsViewer/config/columns.ts— column types, registry,customColumnscontract, normalization.products/logs/frontend/components/LogsViewer/config/LogsColumnConfigurator.tsxandlogsColumnConfiguratorLogic.ts— the UI and its kea logic.products/logs/frontend/components/LogsViewer/config/logsViewerConfigLogic.ts— persistence.products/logs/backend/logs_query_runner.py+column_expressions.pyandproducts/logs/backend/test/test_custom_columns.py— server-side expression handling and its guardrails.
Where it lands in tracing
products/tracing/frontend/VirtualizedTable.tsxalready carries aVirtualizedTableColumn<T>contract that deliberately mirrors logs'VirtualizedTableColumn, with resizing viacomponents/TableColumns/useResizableColumns. The two were written with the intent of converging on a sharedlib/primitive — this is a good moment to do that rather than fork a third copy of the configurator.- Backend:
products/tracing/backend/logic.py(TraceSpansQueryRunner) needs the equivalent ofcustomColumns— a validated, scalar-only expression list. TracingViewinproducts/tracing/backend/models.pyneeds a column field.
Describe alternatives you've considered
- Adding a couple more fixed columns: does not help, because the attributes people care about are their own.
- Sending them to SQL: works, but loses the filter rail, the waterfall and the drawer.
Additional context
Requested through in-product survey feedback on the tracing product.
This is now available: the tracing span table has a column configurator where you can add span or resource attributes as columns. Closing as done, thanks for the request.