Skip to content

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

fix: use unix timestamp for batch export file name to avoid invalid characters (#5092)

Haoping0047cbb36722
diff --git a/worker/src/features/batchExport/handleBatchExportJob.ts b/worker/src/features/batchExport/handleBatchExportJob.ts
index b0900af6d8..a4905bf795 100644
--- a/worker/src/features/batchExport/handleBatchExportJob.ts
+++ b/worker/src/features/batchExport/handleBatchExportJob.ts
@@ -392,7 +392,7 @@ export const handleBatchExportJob = async (
},
);
- const fileDate = new Date().toISOString();
+ const fileDate = new Date().getTime();
const fileExtension =
exportOptions[jobDetails.format as BatchExportFileFormat].extension;
const fileName = `${env.LANGFUSE_S3_BATCH_EXPORT_PREFIX}${fileDate}-lf-${parsedQuery.data.tableName}-export-${projectId}.${fileExtension}`;