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

(cherry picked from commit a4797ee433)

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
This commit is contained in:
Kibana Machine 2022-09-23 06:21:29 -06:00 committed by GitHub
parent 488b8db94c
commit fa18d6ab40
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}"`,
},
});