diff --git a/public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx b/public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx index 94ade2699b3..71a4a7f1f88 100644 --- a/public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx +++ b/public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx @@ -48,6 +48,9 @@ export function QueryOptions({ query, onQueryChange, app, labels }: Props) { if (query.groupBy?.length) { collapsedInfo.push(`Group by: ${query.groupBy.join(', ')}`); } + if (query.spanSelector?.length) { + collapsedInfo.push(`Span ID: ${query.spanSelector.join(', ')}`); + } if (query.maxNodes) { collapsedInfo.push(`Max nodes: ${query.maxNodes}`); }