Skip to content

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

Revert "feat: tag legacy endpoints in events table"

Marc Klingen50d3fbfaf5c4
diff --git a/src/pages/api/public/events.ts b/src/pages/api/public/events.ts
index 1c3f775465..7ca51ba683 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.ts
index 94a520c4ad..726f437dcf 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.ts
index 5b47c4a9c9..25a63b9724 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.ts
index a2535759d5..8a5712526c 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.ts
index 7b96a429d0..d49ef09087 100644
--- a/src/pages/api/public/traces.ts
+++ b/src/pages/api/public/traces.ts
@@ -63,12 +63,7 @@ export default async function handler(
body: body,
};
- const result = await handleBatch(
- [event],
- { legacyEndpoint: "/api/public/traces" },
- req,
- authCheck,
- );
+ const result = await handleBatch([event], {}, req, authCheck);
handleBatchResultLegacy(result.errors, result.results, res);
} else if (req.method === "GET") {
if (authCheck.scope.accessLevel !== "all") {