: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 {
APP_METRICS_OUTPUT,
DLQ_OUTPUT,
EVENTS_OUTPUT,
INGESTION_WARNINGS_OUTPUT,
LOG_ENTRIES_OUTPUT,
OVERFLOW_OUTPUT,
TOPHOG_OUTPUT,
} from '~/common/outputs'
import { IngestionOutputsBuilder } from '~/common/outputs/ingestion-outputs-builder'
/** Register all error tracking outputs on the builder. Call `.build(registry, config)` to resolve. */
export function createOutputsRegistry() {
return new IngestionOutputsBuilder()
.register(EVENTS_OUTPUT, {
topicKey: 'ERROR_TRACKING_CONSUMER_OUTPUT_TOPIC',
producerKey: 'ERROR_TRACKING_OUTPUT_EVENTS_PRODUCER',
})
.register(INGESTION_WARNINGS_OUTPUT, {
topicKey: 'ERROR_TRACKING_OUTPUT_INGESTION_WARNINGS_TOPIC',
producerKey: 'ERROR_TRACKING_OUTPUT_INGESTION_WARNINGS_PRODUCER',
})
.register(DLQ_OUTPUT, {
topicKey: 'ERROR_TRACKING_CONSUMER_DLQ_TOPIC',
producerKey: 'ERROR_TRACKING_OUTPUT_DLQ_PRODUCER',
})
.register(OVERFLOW_OUTPUT, {
topicKey: 'ERROR_TRACKING_CONSUMER_OVERFLOW_TOPIC',
producerKey: 'ERROR_TRACKING_OUTPUT_OVERFLOW_PRODUCER',
})
.register(APP_METRICS_OUTPUT, {
topicKey: 'ERROR_TRACKING_OUTPUT_APP_METRICS_TOPIC',
producerKey: 'ERROR_TRACKING_OUTPUT_APP_METRICS_PRODUCER',
})
.register(LOG_ENTRIES_OUTPUT, {
topicKey: 'ERROR_TRACKING_OUTPUT_LOG_ENTRIES_TOPIC',
producerKey: 'ERROR_TRACKING_OUTPUT_LOG_ENTRIES_PRODUCER',
})
.register(TOPHOG_OUTPUT, {
topicKey: 'ERROR_TRACKING_OUTPUT_TOPHOG_TOPIC',
producerKey: 'ERROR_TRACKING_OUTPUT_TOPHOG_PRODUCER',
})
}