materialized view and a bit better ui
This commit is contained in:
1 parent
26b677154b
commit
49f9bb3458
30 files changed
+2184
-106
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import type { ProcessedTrace } from "../components/TraceVisualization"
|
||||
import type { TraceSummary } from "./types"
|
||||
|
||||
/** Same shape the server returns, derived from a fully loaded trace (for lists built from live data). */
|
||||
export function summarizeTrace(t: ProcessedTrace): TraceSummary {
|
||||
return {
|
||||
id: t.id,
|
||||
name: t.name,
|
||||
startTime: t.startTime,
|
||||
endTime: t.endTime,
|
||||
duration: t.duration,
|
||||
spanCount: t.spans.length,
|
||||
errorCount: t.errorCount,
|
||||
services: t.services,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user