: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
import type { FetchCandidate } from './collected-urls-record'
import type { ImageFetchResult } from './image-fetcher'
/**
* Where the lane stores each fetched image. The image counts as handled only once the sink resolves: a rejection keeps
* the URL unfinished, so it is fetched again.
*
* S3 expires an object by its creation time, so the lane refreshes an image that went the refresh interval of
* `replay_core_v4::fetch_history` without one, and the image lives as long as the data that references it.
*/
export interface RefreshingImageSink {
publishImage(candidate: FetchCandidate, result: ImageFetchResult): Promise<void>
/** Resets the age of the stored image of a reference, with no origin request. Resolves to false if none is stored. */
refreshImage(candidate: FetchCandidate): Promise<boolean>
}