Skip to content

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

chore: separate flag behaviour for event table propagation (#12216)

Steffen Schmitz1bf610ec8264
diff --git a/worker/src/queues/ingestionQueue.ts b/worker/src/queues/ingestionQueue.ts
index 87063d5b2f..e8b18c74e3 100644
--- a/worker/src/queues/ingestionQueue.ts
+++ b/worker/src/queues/ingestionQueue.ts
@@ -265,9 +265,7 @@ export const ingestionQueueProcessorBuilder = (
// Use explicit flag from job payload if provided, otherwise fall back to env flags
const forwardToEventsTable =
job.data.payload.data.forwardToEventsTable ??
- (env.LANGFUSE_EXPERIMENT_INSERT_INTO_EVENTS_TABLE === "true" &&
- env.QUEUE_CONSUMER_EVENT_PROPAGATION_QUEUE_IS_ENABLED === "true" &&
- env.LANGFUSE_EXPERIMENT_EARLY_EXIT_EVENT_BATCH_JOB !== "true");
+ env.LANGFUSE_EXPERIMENT_INSERT_INTO_EVENTS_TABLE === "true";
await new IngestionService(
redis,
diff --git a/worker/src/queues/otelIngestionQueue.ts b/worker/src/queues/otelIngestionQueue.ts
index 1f6c4f36db..8005f155a2 100644
--- a/worker/src/queues/otelIngestionQueue.ts
+++ b/worker/src/queues/otelIngestionQueue.ts
@@ -340,9 +340,7 @@ export const otelIngestionQueueProcessor: Processor = async (
const shouldForwardToEventsTable =
!useDirectEventWrite &&
- env.LANGFUSE_EXPERIMENT_INSERT_INTO_EVENTS_TABLE === "true" &&
- env.QUEUE_CONSUMER_EVENT_PROPAGATION_QUEUE_IS_ENABLED === "true" &&
- env.LANGFUSE_EXPERIMENT_EARLY_EXIT_EVENT_BATCH_JOB !== "true";
+ env.LANGFUSE_EXPERIMENT_INSERT_INTO_EVENTS_TABLE === "true";
// Running everything concurrently might be detrimental to the event loop, but has probably
// the highest possible throughput. Therefore, we start with a Promise.all.