🪢 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: adjust sampling metric (#8132)
Max Deichmann34ded9c92793
diff --git a/packages/shared/src/server/ingestion/processEventBatch.ts b/packages/shared/src/server/ingestion/processEventBatch.tsindex dd669a6bba..bad611a896 100644--- a/packages/shared/src/server/ingestion/processEventBatch.ts+++ b/packages/shared/src/server/ingestion/processEventBatch.ts@@ -280,21 +280,19 @@ export const processEventBatch = async (});if (!isSampled) {- recordIncrement(- "langfuse.ingestion.sampling.events_out",- eventData.data.length,- { projectId: authCheck.scope.projectId ?? "<not set>" },- );+ recordIncrement("langfuse.ingestion.sampling", eventData.data.length, {+ projectId: authCheck.scope.projectId ?? "<not set>",+ sampling_decision: "out",+ });return;}if (isSamplingConfigured) {- recordIncrement(- "langfuse.ingestion.sampling.events_in",- eventData.data.length,- { projectId: authCheck.scope.projectId ?? "<not set>" },- );+ recordIncrement("langfuse.ingestion.sampling", eventData.data.length, {+ projectId: authCheck.scope.projectId ?? "<not set>",+ sampling_decision: "in",+ });}return queue