🪢 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
feat: tag legacy endpoints in events table
Marc Klingen01bce79e6f90
diff --git a/src/pages/api/public/events.ts b/src/pages/api/public/events.tsindex 7ca51ba683..1c3f775465 100644--- a/src/pages/api/public/events.ts+++ b/src/pages/api/public/events.ts@@ -59,7 +59,7 @@ export default async function handler(const result = await handleBatch(ingestionBatchEvent.parse([event]),- {},+ { legacyEndpoint: "/api/public/events" },req,authCheck,);diff --git a/src/pages/api/public/generations.ts b/src/pages/api/public/generations.tsindex 726f437dcf..94a520c4ad 100644--- a/src/pages/api/public/generations.ts+++ b/src/pages/api/public/generations.ts@@ -62,7 +62,7 @@ export default async function handler(const result = await handleBatch(ingestionBatchEvent.parse([event]),- {},+ { legacyEndpoint: "/api/public/generations" },req,authCheck,);@@ -107,7 +107,7 @@ export default async function handler(const result = await handleBatch(ingestionBatchEvent.parse([event]),- {},+ { legacyEndpoint: "/api/public/generations" },req,authCheck,);diff --git a/src/pages/api/public/scores.ts b/src/pages/api/public/scores.tsindex 25a63b9724..5b47c4a9c9 100644--- a/src/pages/api/public/scores.ts+++ b/src/pages/api/public/scores.ts@@ -56,7 +56,7 @@ export default async function handler(const result = await handleBatch(ingestionBatchEvent.parse([event]),- {},+ { legacyEndpoint: "/api/public/scores" },req,authCheck,);diff --git a/src/pages/api/public/spans.ts b/src/pages/api/public/spans.tsindex 8a5712526c..a2535759d5 100644--- a/src/pages/api/public/spans.ts+++ b/src/pages/api/public/spans.ts@@ -58,7 +58,7 @@ export default async function handler(const result = await handleBatch(ingestionBatchEvent.parse([event]),- {},+ { legacyEndpoint: "/api/public/spans" },req,authCheck,);@@ -100,7 +100,7 @@ export default async function handler(const result = await handleBatch(ingestionBatchEvent.parse([event]),- {},+ { legacyEndpoint: "/api/public/spans" },req,authCheck,);diff --git a/src/pages/api/public/traces.ts b/src/pages/api/public/traces.tsindex d49ef09087..7b96a429d0 100644--- a/src/pages/api/public/traces.ts+++ b/src/pages/api/public/traces.ts@@ -63,7 +63,12 @@ export default async function handler(body: body,};- const result = await handleBatch([event], {}, req, authCheck);+ const result = await handleBatch(+ [event],+ { legacyEndpoint: "/api/public/traces" },+ req,+ authCheck,+ );handleBatchResultLegacy(result.errors, result.results, res);} else if (req.method === "GET") {if (authCheck.scope.accessLevel !== "all") {