🪢 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(dashboard): add row_limit to unbounded dashboard queries (#12107) (#12160)
Valery Meleshkin7839d5a17db7
diff --git a/web/src/features/dashboard/components/LatencyTables.tsx b/web/src/features/dashboard/components/LatencyTables.tsxindex f5d71952a5..1275fed244 100644--- a/web/src/features/dashboard/components/LatencyTables.tsx+++ b/web/src/features/dashboard/components/LatencyTables.tsx@@ -50,6 +50,7 @@ export const LatencyTables = ({fromTimestamp: fromTimestamp.toISOString(),toTimestamp: toTimestamp.toISOString(),orderBy: [{ field: "p95_latency", direction: "desc" }],+ chartConfig: { type: "table", row_limit: 20 },};const generationsLatencies = api.dashboard.executeQuery.useQuery(@@ -90,6 +91,7 @@ export const LatencyTables = ({fromTimestamp: fromTimestamp.toISOString(),toTimestamp: toTimestamp.toISOString(),orderBy: [{ field: "p95_latency", direction: "desc" }],+ chartConfig: { type: "table", row_limit: 20 },};const spansLatencies = api.dashboard.executeQuery.useQuery(@@ -122,6 +124,7 @@ export const LatencyTables = ({fromTimestamp: fromTimestamp.toISOString(),toTimestamp: toTimestamp.toISOString(),orderBy: [{ field: "p95_latency", direction: "desc" }],+ chartConfig: { type: "table", row_limit: 20 },};const tracesLatencies = api.dashboard.executeQuery.useQuery(diff --git a/web/src/features/dashboard/components/ModelCostTable.tsx b/web/src/features/dashboard/components/ModelCostTable.tsxindex 2fd9fdd708..9f9a489f0b 100644--- a/web/src/features/dashboard/components/ModelCostTable.tsx+++ b/web/src/features/dashboard/components/ModelCostTable.tsx@@ -51,7 +51,8 @@ export const ModelCostTable = ({timeDimension: null,fromTimestamp: fromTimestamp.toISOString(),toTimestamp: toTimestamp.toISOString(),- orderBy: null,+ orderBy: [{ field: "sum_totalCost", direction: "desc" }],+ chartConfig: { type: "table", row_limit: 20 },};const metrics = api.dashboard.executeQuery.useQuery(diff --git a/web/src/features/dashboard/components/TracesBarListChart.tsx b/web/src/features/dashboard/components/TracesBarListChart.tsxindex c316676458..1f2f31a758 100644--- a/web/src/features/dashboard/components/TracesBarListChart.tsx+++ b/web/src/features/dashboard/components/TracesBarListChart.tsx@@ -70,7 +70,8 @@ export const TracesBarListChart = ({timeDimension: null,fromTimestamp: fromTimestamp.toISOString(),toTimestamp: toTimestamp.toISOString(),- orderBy: null,+ orderBy: [{ field: "count_count", direction: "desc" }],+ chartConfig: { type: "table", row_limit: 20 },};const traces = api.dashboard.executeQuery.useQuery(