Skip to content

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

chore: improve redis logging (#2731)

Max Deichmann57b46b9f19ac
diff --git a/web/src/pages/api/public/ingestion.ts b/web/src/pages/api/public/ingestion.ts
index ba46864a60..3b0a0ddc67 100644
--- a/web/src/pages/api/public/ingestion.ts
+++ b/web/src/pages/api/public/ingestion.ts
@@ -532,6 +532,13 @@ export const sendToWorkerIfEnvironmentConfigured = async (
console.log("Sending events to worker via redis", traceEvents);
const jobs = convertTraceUpsertEventsToRedisEvents(traceEvents);
await traceUpsertQueue?.addBulk(jobs);
+
+ if (traceUpsertQueue) {
+ console.log(
+ `Added ${jobs.length} trace upsert jobs to the queue`,
+ jobs,
+ );
+ }
} else if (
env.LANGFUSE_WORKER_HOST &&
env.LANGFUSE_WORKER_PASSWORD &&
diff --git a/worker/src/api/index.ts b/worker/src/api/index.ts
index 70c7171d6d..667f1f86be 100644
--- a/worker/src/api/index.ts
+++ b/worker/src/api/index.ts
@@ -54,6 +54,13 @@ router
const jobs = convertTraceUpsertEventsToRedisEvents(event.data.payload);
await traceUpsertQueue?.addBulk(jobs); // add all jobs as bulk
+ if (traceUpsertQueue) {
+ logger.info(
+ `Added ${jobs.length} trace upsert jobs to the queue`,
+ jobs
+ );
+ }
+
return res.json({
status: "success",
});