Skip to content

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

fix: avoid write after end errors on otel metrics endpoint (#6419)

Steffen Schmitzf1547dab585b
diff --git a/web/src/pages/api/public/otel/v1/metrics/index.ts b/web/src/pages/api/public/otel/v1/metrics/index.ts
index a18d2a93b8..df1e51842d 100644
--- a/web/src/pages/api/public/otel/v1/metrics/index.ts
+++ b/web/src/pages/api/public/otel/v1/metrics/index.ts
@@ -14,9 +14,6 @@ export default withMiddlewares({
querySchema: z.any(),
responseSchema: z.any(),
rateLimitResource: "ingestion",
- fn: async ({ res }) => {
- // Just return a 200 status code without processing the request body
- return res.status(200).json({ status: "ok" });
- },
+ fn: async () => {},
}),
});