🪢 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(cloud): export onboarding survey responses to s3 (#8841)
Marc Klingen56ee375a715e
diff --git a/worker/src/queues/coreDataS3ExportQueue.ts b/worker/src/queues/coreDataS3ExportQueue.tsindex ef6af72967..cf1f412244 100644--- a/worker/src/queues/coreDataS3ExportQueue.ts+++ b/worker/src/queues/coreDataS3ExportQueue.ts@@ -49,6 +49,7 @@ export const coreDataS3ExportProcessor: Processor = async (): Promise<void> => {projectMemberships,prompts,billingMeterBackup,+ surveys,] = await Promise.all([prisma.project.findMany({select: {@@ -108,6 +109,17 @@ export const coreDataS3ExportProcessor: Processor = async (): Promise<void> => {},}),prisma.billingMeterBackup.findMany(),+ prisma.survey.findMany({+ select: {+ id: true,+ surveyName: true,+ response: true,+ userId: true,+ userEmail: true,+ orgId: true,+ createdAt: true,+ },+ }),]);// Iterate through the tables and upload them to S3 as JSONLs@@ -120,6 +132,7 @@ export const coreDataS3ExportProcessor: Processor = async (): Promise<void> => {projectMemberships,prompts,billingMeterBackup,+ surveys,}).map(async ([key, value]) =>s3Client.uploadFile({fileName: `${env.LANGFUSE_S3_CORE_DATA_UPLOAD_PREFIX}${key}.jsonl`,