: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
fix(replay-vision): give rasterizer block listing its own timeout (#92786)
Hayne Ryu2593d5a2676b
diff --git a/nodejs/src/session-replay/recording-rasterizer/__tests__/block-proxy.test.ts b/nodejs/src/session-replay/recording-rasterizer/__tests__/block-proxy.test.tsindex 2fe7cf43dbbd..4799d1703a85 100644--- a/nodejs/src/session-replay/recording-rasterizer/__tests__/block-proxy.test.ts+++ b/nodejs/src/session-replay/recording-rasterizer/__tests__/block-proxy.test.ts@@ -21,7 +21,6 @@ const testCfg = {recordingApiBaseUrl: 'http://localhost:6738',recordingApiSecret: 'test-secret',blockListingTimeoutMs: 30_000,- blockFetchTimeoutMs: 60_000,}const mockLog = {@@ -179,7 +178,7 @@ describe('BlockProxy', () => {expect(mockInternalFetch).toHaveBeenCalledWith(expect.stringContaining('/api/projects/1/recordings/test-session-123/block?'),- { headers: { 'X-Internal-Api-Secret': 'test-secret' }, timeoutMs: 60_000 }+ { headers: { 'X-Internal-Api-Secret': 'test-secret' } })const fetchUrl = mockInternalFetch.mock.calls[0][0] as stringexpect(fetchUrl).toContain('key=recordings%2Fblock-0')@@ -204,7 +203,6 @@ describe('BlockProxy', () => {expect(mockInternalFetch).toHaveBeenCalledWith(expect.stringContaining('/block?'), {headers: { 'X-Internal-Api-Secret': 'test-secret', Authorization: 'Bearer minted-token' },- timeoutMs: 60_000,})})diff --git a/nodejs/src/session-replay/recording-rasterizer/capture/block-proxy.ts b/nodejs/src/session-replay/recording-rasterizer/capture/block-proxy.tsindex e984c51a692b..1f221dfa6454 100644--- a/nodejs/src/session-replay/recording-rasterizer/capture/block-proxy.ts+++ b/nodejs/src/session-replay/recording-rasterizer/capture/block-proxy.ts@@ -23,7 +23,6 @@ export class BlockProxy {recordingApiBaseUrl: stringrecordingApiSecret: stringblockListingTimeoutMs: number- blockFetchTimeoutMs: number},private log: Logger = createLogger()) {}@@ -122,7 +121,6 @@ export class BlockProxy {const url = `${apiBase}/${this.teamId}/recordings/${encodeURIComponent(this.sessionId)}/block?${params}`const resp = await internalFetch(url, {headers: this.authHeaders(),- timeoutMs: this.cfg.blockFetchTimeoutMs,})if (resp.status < 200 || resp.status >= 300) {const text = await resp.text()diff --git a/nodejs/src/session-replay/recording-rasterizer/config.ts b/nodejs/src/session-replay/recording-rasterizer/config.tsindex 7ca13f446758..38056af59472 100644--- a/nodejs/src/session-replay/recording-rasterizer/config.ts+++ b/nodejs/src/session-replay/recording-rasterizer/config.ts@@ -51,9 +51,6 @@ export const config = {recordingApiSecret: process.env.INTERNAL_API_SECRET || '',// The listing hits ClickHouse through recording-api, so internalFetch's 3s default aborts it under load.blockListingTimeoutMs: parsePositiveInt(process.env.BLOCK_LISTING_TIMEOUT_MS, 30_000),- // Bounds a stalled read rather than capping latency, so it stays generous enough for a slow but- // progressing transfer. Unbounded, one stall holds its render slot until beginFrameTimeoutMs fires.- blockFetchTimeoutMs: parsePositiveInt(process.env.BLOCK_FETCH_TIMEOUT_MS, 60_000),// Renders above this many compressed bytes fail permanently instead of loading the pod into its// memory limit. Deliberately generous: the every-render byte log is what tightens it over time.maxRecordingCompressedBytes: parsePositiveInt(process.env.MAX_RECORDING_COMPRESSED_BYTES, 512 * 1024 * 1024),