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
pull/66684/head
Eric Mustin 2 years ago committed by GitHub
parent 6be9264b94
commit 6462c81f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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,

Loading…
Cancel
Save