[Profiling] Persist current kuery when linking to traces (#141596)

This commit is contained in:
Dario Gieselaar 2022-09-23 13:18:14 +02:00 committed by GitHub
parent 4b246b5f8e
commit a4797ee433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,9 @@ export const SubChart: React.FC<SubChartProps> = ({
},
query: {
...query,
kuery: `${getFieldNameForTopNType(path.topNType)}:"${category}"`,
kuery: `${query.kuery ? `(${query.kuery}) AND ` : ''}${getFieldNameForTopNType(
path.topNType
)}:"${category}"`,
},
});