Skip to content

: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.

779 B
Raw Blame
import { IngestionOutputsBuilder } from '~/common/outputs/ingestion-outputs-builder'
import { REPLAY_EVENTS_OUTPUT, SESSION_FEATURES_OUTPUT } from '~/ingestion/pipelines/sessionreplay/shared/outputs'

/** Register all recording-api outputs on the builder. Call `.build(registry, config)` to resolve. */
export function createOutputsRegistry() {
    return new IngestionOutputsBuilder()
        .register(REPLAY_EVENTS_OUTPUT, {
            topicKey: 'RECORDING_API_OUTPUT_REPLAY_EVENTS_TOPIC',
            producerKey: 'RECORDING_API_OUTPUT_REPLAY_EVENTS_PRODUCER',
        })
        .register(SESSION_FEATURES_OUTPUT, {
            topicKey: 'RECORDING_API_OUTPUT_SESSION_FEATURES_TOPIC',
            producerKey: 'RECORDING_API_OUTPUT_SESSION_FEATURES_PRODUCER',
        })
}