From f0cb88e3b5c6760289e3e6a8d0c6e6b6fd263f6c Mon Sep 17 00:00:00 2001 From: Joey <90795735+joey-grafana@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:07:19 +0000 Subject: [PATCH] Pyroscope: Add Span ID to options collapsed info (#79981) * Pyroscope: Add Span ID to options collapsed info * Update for multiple * Update public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com> --------- Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com> --- .../grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx | 3 +++ 1 file changed, 3 insertions(+) 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}`); }