: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 {
DLQ_OUTPUT,
INGESTION_WARNINGS_OUTPUT,
LOG_ENTRIES_OUTPUT,
OVERFLOW_OUTPUT,
TOPHOG_OUTPUT,
} from '~/common/outputs'
import { IngestionOutputsBuilder } from '~/common/outputs/ingestion-outputs-builder'
import {
ML_BLOCK_METADATA_OUTPUT,
ML_IMAGE_FETCH_OUTPUT,
ML_IMAGE_SCRUB_OUTPUT,
REPLAY_EVENTS_OUTPUT,
SESSION_FEATURES_OUTPUT,
} from '~/ingestion/pipelines/sessionreplay/shared/outputs'
/** Register all session replay outputs on the builder. Call `.build(registry, config)` to resolve. */
export function createOutputsRegistry() {
return new IngestionOutputsBuilder()
.register(INGESTION_WARNINGS_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_INGESTION_WARNINGS_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_INGESTION_WARNINGS_PRODUCER',
})
.register(DLQ_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_DLQ_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_DLQ_PRODUCER',
})
.register(OVERFLOW_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_OVERFLOW_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_OVERFLOW_PRODUCER',
})
.register(TOPHOG_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_TOPHOG_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_TOPHOG_PRODUCER',
})
.register(LOG_ENTRIES_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_LOG_ENTRIES_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_LOG_ENTRIES_PRODUCER',
})
.register(REPLAY_EVENTS_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_REPLAY_EVENTS_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_REPLAY_EVENTS_PRODUCER',
})
.register(SESSION_FEATURES_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_SESSION_FEATURES_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_SESSION_FEATURES_PRODUCER',
})
.register(ML_BLOCK_METADATA_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_ML_BLOCK_METADATA_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_ML_BLOCK_METADATA_PRODUCER',
})
.register(ML_IMAGE_SCRUB_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_ML_IMAGE_SCRUB_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_ML_IMAGE_SCRUB_PRODUCER',
})
.register(ML_IMAGE_FETCH_OUTPUT, {
topicKey: 'INGESTION_SESSIONREPLAY_OUTPUT_ML_IMAGE_FETCH_TOPIC',
producerKey: 'INGESTION_SESSIONREPLAY_OUTPUT_ML_IMAGE_FETCH_PRODUCER',
})
}