[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 6462c81f81)

Co-authored-by: Eric Mustin <mustin.eric@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2023-04-18 01:01:36 +01:00
committed by GitHub
co-authored by Eric Mustin
parent 36470ebcf3
commit a7ac9d0b3b
@@ -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,