From 6462c81f8166334bb3925ffbb562fa074c2f465f Mon Sep 17 00:00:00 2001 From: Eric Mustin Date: Mon, 17 Apr 2023 09:17:53 -0400 Subject: [PATCH] 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 --- 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 f7066c061ea..5e9a44b5873 100644 --- a/public/app/features/explore/TraceView/TraceView.tsx +++ b/public/app/features/explore/TraceView/TraceView.tsx @@ -284,7 +284,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,