Tempo: Put trace results data frame first when streaming (#93739)

* Put trace results dataframe first

* Add comment
pull/94558/head
Joey 9 months ago committed by GitHub
parent 42eb033b03
commit a268a56acb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      public/app/plugins/datasource/tempo/streaming.ts

@ -84,9 +84,12 @@ export function doTempoChannelStream(
throw new Error(error);
}
// The order of the frames is important. The metrics frame should always be the last frame.
// This is because the metrics frame is used to display the progress of the streaming query
// and we would like to display the results first.
frames = [
metricsDataFrame(metrics, frameState, elapsedTime),
...formatTraceQLResponse(traces, instanceSettings, query.tableType),
metricsDataFrame(metrics, frameState, elapsedTime),
];
}
return {

Loading…
Cancel
Save