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>
This commit is contained in:
Joey 2024-01-08 12:07:19 +00:00 committed by GitHub
parent 78ae795e06
commit f0cb88e3b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}`);
}