fix: complete traces on idle, improve dashboard span/event/analytics views

This commit is contained in:
Vectry
2026-02-10 13:25:19 +00:00
parent 7534c709f5
commit 638a5d2640
5 changed files with 105 additions and 33 deletions

View File

@@ -12,6 +12,7 @@ interface TraceData {
metadata: Record<string, unknown>;
costUsd: number | null;
totalCost: number | null;
totalTokens: number | null;
decisionPoints: Array<{
id: string;
type: string;
@@ -96,6 +97,8 @@ export default async function TraceDetailPage({ params }: TraceDetailPageProps)
tags: trace.tags,
metadata: trace.metadata,
costUsd: trace.costUsd ?? trace.totalCost,
totalTokens: trace.totalTokens ?? null,
totalCost: trace.totalCost ?? null,
}}
decisionPoints={trace.decisionPoints}
spans={trace.spans}