Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: avoid FINAL on traces table in traces.metrics endpoint (#12546)

Matthew Lapointed16a60c4c95f
diff --git a/web/src/server/api/routers/traces.ts b/web/src/server/api/routers/traces.ts
index 900fea2d9e..c8c1a22040 100644
--- a/web/src/server/api/routers/traces.ts
+++ b/web/src/server/api/routers/traces.ts
@@ -229,6 +229,7 @@ export const traceRouter = createTRPCRouter({
value: filteredTraceIds,
},
],
+ orderBy: { column: "timestamp", order: "DESC" },
});
const traceScores = await getScoresForTraces({