Skip to content

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

fix(posthog): raise SDK maxQueueSize to stop silent event drops (LFE-14456) (#15374)

Niklas Semmlerbd9921961f74
diff --git a/worker/src/features/posthog/handlePostHogIntegrationProjectJob.ts b/worker/src/features/posthog/handlePostHogIntegrationProjectJob.ts
index fca4731bbe..d13790f9c6 100644
--- a/worker/src/features/posthog/handlePostHogIntegrationProjectJob.ts
+++ b/worker/src/features/posthog/handlePostHogIntegrationProjectJob.ts
@@ -41,6 +41,9 @@ type PostHogExecutionConfig = {
const postHogSettings = {
flushAt: 1000,
+ // Must be >= the capture loops' manual flush cadence (every 10k events);
+ // past this cap the SDK silently drops the oldest queued event.
+ maxQueueSize: 10000,
};
type PostHogClientOptions = NonNullable<