From a7ac9d0b3b947e58f4971f9b4518ef3683adcf1a Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 17 Apr 2023 19:01:36 -0500 Subject: [PATCH] [v9.4.x] Trace View: Update the queryType to traceql for checking if same trace when clicking span link (#66670) Trace View: Update the queryType to traceql for checking if same trace when clicking span link (#66645) * TraceView: update the queryType to traceql for checking if same trace when clicking span link * TraceView: linting * TraceView: remove traceid check completely (cherry picked from commit 6462c81f8166334bb3925ffbb562fa074c2f465f) Co-authored-by: Eric Mustin --- public/app/features/explore/TraceView/TraceView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/explore/TraceView/TraceView.tsx b/public/app/features/explore/TraceView/TraceView.tsx index 11badf9eca6..1e2debb1cfc 100644 --- a/public/app/features/explore/TraceView/TraceView.tsx +++ b/public/app/features/explore/TraceView/TraceView.tsx @@ -250,7 +250,7 @@ function useFocusSpanLink(options: { // Check if the link is to a different trace or not. // If it's the same trace, only update panel state with setFocusedSpanId (no navigation). // If it's a different trace, use splitOpenFn to open a new explore panel - const sameTrace = query?.queryType === 'traceId' && (query as TempoQuery).query === traceId; + const sameTrace = query?.queryType === 'traceql' && (query as TempoQuery).query === traceId; return mapInternalLinkToExplore({ link,