🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix: show number of observations in trace table (#3743)
marliessophie4c55165c2f3a
diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsxindex 55e9d7449d..267a1e27e8 100644--- a/web/src/components/table/use-cases/traces.tsx+++ b/web/src/components/table/use-cases/traces.tsx@@ -57,7 +57,7 @@ export type TracesTableRow = {name: string;userId: string;level?: ObservationLevel;- observationCount?: number;+ observationCount?: bigint;// scores holds grouped column with individual scoresscores?: ScoreAggregate;latency?: number;@@ -602,7 +602,7 @@ export default function TracesTable({const value: TracesTableRow["observationCount"] =row.getValue("observationCount");if (!traceMetrics.data) return <Skeleton className="h-3 w-1/2" />;- return <span>{value}</span>;+ return <span>{numberFormatter(value, 0)}</span>;},},{diff --git a/web/src/server/api/routers/traces.ts b/web/src/server/api/routers/traces.tsindex 465d347812..eeef8f9dd7 100644--- a/web/src/server/api/routers/traces.ts+++ b/web/src/server/api/routers/traces.ts@@ -157,10 +157,9 @@ export const traceRouter = createTRPCRouter({promptTokens: bigint;completionTokens: bigint;totalTokens: bigint;- totalCount: number;latency: number | null;level: ObservationLevel;- observationCount: number;+ observationCount: bigint;calculatedTotalCost: Decimal | null;calculatedInputCost: Decimal | null;calculatedOutputCost: Decimal | null;