Skip to content

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

perf(dashboards): read directly from observations table for costs (#2568)

Hassieb Pakzad53e44330327a
diff --git a/web/src/features/dashboard/components/MetricTable.tsx b/web/src/features/dashboard/components/MetricTable.tsx
index 4b66cc5e87..07c45b41fd 100644
--- a/web/src/features/dashboard/components/MetricTable.tsx
+++ b/web/src/features/dashboard/components/MetricTable.tsx
@@ -23,7 +23,7 @@ export const MetricTable = ({
{
projectId,
from: env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION // Langfuse Cloud has already completed the cost backfill job, thus cost can be pulled directly from obs. table
- ? "traces_observations"
+ ? "observations"
: "traces_observationsview",
select: [
{ column: "calculatedTotalCost", agg: "SUM" },
diff --git a/web/src/features/dashboard/components/ModelUsageChart.tsx b/web/src/features/dashboard/components/ModelUsageChart.tsx
index 805b5fa8f8..24dd18738e 100644
--- a/web/src/features/dashboard/components/ModelUsageChart.tsx
+++ b/web/src/features/dashboard/components/ModelUsageChart.tsx
@@ -37,7 +37,7 @@ export const ModelUsageChart = ({
{
projectId,
from: env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION // Langfuse Cloud has already completed the cost backfill job, thus cost can be pulled directly from obs. table
- ? "traces_observations"
+ ? "observations"
: "traces_observationsview",
select: [
{ column: "totalTokens", agg: "SUM" },