🪢 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
perf(api-traces): increase byId size limit to 5MB (#6604)
Hassieb Pakzad3ec5476c0427
diff --git a/packages/shared/src/server/repositories/observations.ts b/packages/shared/src/server/repositories/observations.tsindex 564c5f2529..b90e4496f3 100644--- a/packages/shared/src/server/repositories/observations.ts+++ b/packages/shared/src/server/repositories/observations.ts@@ -174,10 +174,10 @@ export const getObservationsForTrace = async (// Large number of observations in trace with large input / output / metadata will lead to// high CPU and memory consumption in the convertObservation step, where parsing occurs- // Thus, limit the size of the payload to 4MB, follows NextJS response size limitation:+ // Thus, limit the size of the payload to 5MB, follows NextJS response size limitation:// https://nextjs.org/docs/messages/api-routes-response-size-limit// See also LFE-4882 for more details- const PAYLOAD_SIZE_LIMIT = 4e6; // 4MB+ const PAYLOAD_SIZE_LIMIT = 5e6; // 5MBlet payloadSize = 0;for (const observation of records) {