Skip to content

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

feat(metrics): add timestampDay field to scoresNumericView and scoresCategoricalView (#10403)

Marc Klingen412e9501e6b5
diff --git a/web/src/features/query/dataModel.ts b/web/src/features/query/dataModel.ts
index 862ba0f01e..55242eefa7 100644
--- a/web/src/features/query/dataModel.ts
+++ b/web/src/features/query/dataModel.ts
@@ -524,6 +524,12 @@ export const scoresNumericView: ViewDeclarationType = {
type: "string",
description: "Month of the score timestamp in YYYY-MM format.",
},
+ timestampDay: {
+ sql: "formatDateTime(scores_numeric.timestamp, '%Y-%m-%d')",
+ alias: "timestampDay",
+ type: "string",
+ description: "Day of the score timestamp in YYYY-MM-DD format.",
+ },
observationId: {
sql: "scores_numeric.observation_id",
alias: "observationId",
@@ -634,6 +640,12 @@ export const scoresCategoricalView: ViewDeclarationType = {
type: "string",
description: "Month of the score timestamp in YYYY-MM format.",
},
+ timestampDay: {
+ sql: "formatDateTime(scores_categorical.timestamp, '%Y-%m-%d')",
+ alias: "timestampDay",
+ type: "string",
+ description: "Day of the score timestamp in YYYY-MM-DD format.",
+ },
observationId: {
sql: "scores_categorical.observation_id",
alias: "observationId",