:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
docs(replay): point at where the in-flight count is set (#74213)
Robbiead7004275c89
diff --git a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub/scrub-client.ts b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub/scrub-client.tsindex 5d1c96eaa0cb..45a4b9fe0ef5 100644--- a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub/scrub-client.ts+++ b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-scrub/scrub-client.ts@@ -121,7 +121,13 @@ const BACKOFF_MAX_MS: Record<ScrubWaitReason, number> = {*/const STUCK_AFTER_WAITED_MS = 120_000-/** Full jitter, so a pod's eight in-flight images do not all re-post to a busy sidecar in lockstep. */+/**+ * Full jitter, so a pod's in-flight images do not all re-post to a busy sidecar in lockstep.+ *+ * How many that is comes from SESSION_RECORDING_ML_IMAGE_SCRUB_SCRUB_CONCURRENCY, set alongside the+ * sidecar's worker count in+ * https://github.com/PostHog/charts/blob/main/argocd/ingestion/config/ingestion-sessionreplay-ml-image-scrub.yaml+ */function backoffMs(attempt: number, reason: ScrubWaitReason, random: () => number): number {return Math.round(random() * Math.min(BACKOFF_MAX_MS[reason], BACKOFF_BASE_MS * 2 ** attempt))}