🪢 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
chore: add query tags to health check queries (#6493)
Steffen Schmitz3e92e6b74df4
diff --git a/web/src/pages/api/public/health.ts b/web/src/pages/api/public/health.tsindex e01f6a9bdb..7e8f97fcb3 100644--- a/web/src/pages/api/public/health.ts+++ b/web/src/pages/api/public/health.ts@@ -41,25 +41,33 @@ export default async function handler(query: `SELECT idFROM traces- WHERE created_at <= {now: DateTime64(3)}- AND created_at >= {now: DateTime64(3)} - INTERVAL 3 MINUTE+ WHERE timestamp <= {now: DateTime64(3)}+ AND timestamp >= {now: DateTime64(3)} - INTERVAL 3 MINUTELIMIT 1`,params: {now: convertDateToClickhouseDateTime(now),},+ tags: {+ feature: "health-check",+ type: "trace",+ },});const observations = await queryClickhouse({query: `SELECT idFROM observations- WHERE created_at <= {now: DateTime64(3)}- AND created_at >= {now: DateTime64(3)} - INTERVAL 3 MINUTE+ WHERE start_time <= {now: DateTime64(3)}+ AND start_time >= {now: DateTime64(3)} - INTERVAL 3 MINUTELIMIT 1`,params: {now: convertDateToClickhouseDateTime(now),},+ tags: {+ feature: "health-check",+ type: "observation",+ },});if (traces.length === 0 || observations.length === 0) {return res.status(503).json({