: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
feat(capture): enable v1 in local dev and hobby (#62471)
Eli Reisman5b0d179c1470
diff --git a/bin/start-rust-service b/bin/start-rust-serviceindex 9dbfb1527888..10a034a4d9ae 100755--- a/bin/start-rust-service+++ b/bin/start-rust-service@@ -59,6 +59,16 @@ case "$RS_SVC" inexport LOG_LEVEL=debugexport DEBUG=1export KAFKA_ERROR_TRACKING_TOPIC=${KAFKA_ERROR_TRACKING_TOPIC:-ingestion-errortracking-main}+ # v1 capture sink (MSK, writes to same topics as v0)+ export CAPTURE_V1_SINKS=${CAPTURE_V1_SINKS:-msk}+ export CAPTURE_V1_SINK_MSK_KAFKA_HOSTS=${CAPTURE_V1_SINK_MSK_KAFKA_HOSTS:-$DEFAULT_KAFKA}+ export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_MAIN=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_MAIN:-events_plugin_ingestion}+ export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HISTORICAL=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HISTORICAL:-events_plugin_ingestion_historical}+ export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_OVERFLOW=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_OVERFLOW:-events_plugin_ingestion_overflow}+ export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_DLQ=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_DLQ:-events_plugin_ingestion_dlq}+ export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_EXCEPTION=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_EXCEPTION:-ingestion-errortracking-main}+ export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HEATMAP=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HEATMAP:-heatmaps_ingestion}+ export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_CLIENT_INGESTION_WARNING=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_CLIENT_INGESTION_WARNING:-ingestion-clientwarnings-main-1};;capture-replay)diff --git a/docker-compose.base.yml b/docker-compose.base.ymlindex 2a3609a25383..1c58fc14efaf 100644--- a/docker-compose.base.yml+++ b/docker-compose.base.yml@@ -38,6 +38,8 @@ services:path /i/v0path /i/v0/path /i/v0/*+ path /i/v1/analytics/events+ path /i/v1/analytics/events/path /batchpath /batch/path /batch/*@@ -297,6 +299,15 @@ services:REDIS_URL: 'redis://redis7:6379/'CAPTURE_MODE: eventsRUST_LOG: 'info,rdkafka=warn'+ CAPTURE_V1_SINKS: 'msk'+ CAPTURE_V1_SINK_MSK_KAFKA_HOSTS: 'kafka:9092'+ CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_MAIN: 'events_plugin_ingestion'+ CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HISTORICAL: 'events_plugin_ingestion_historical'+ CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_OVERFLOW: 'events_plugin_ingestion_overflow'+ CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_DLQ: 'events_plugin_ingestion_dlq'+ CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_EXCEPTION: 'ingestion-errortracking-main'+ CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HEATMAP: 'heatmaps_ingestion'+ CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_CLIENT_INGESTION_WARNING: 'ingestion-clientwarnings-main-1'replay-capture:image: ghcr.io/posthog/posthog/capture:masterdiff --git a/docker-compose.dev.yml b/docker-compose.dev.ymlindex 42670afb2976..8ef96b17cd39 100644--- a/docker-compose.dev.yml+++ b/docker-compose.dev.yml@@ -51,6 +51,8 @@ services:path /epath /e/*path /i/v0/*+ path /i/v1/analytics/events+ path /i/v1/analytics/events/path /batchpath /batch*path /capturediff --git a/docker-compose.sandbox.yml b/docker-compose.sandbox.ymlindex 15f552006289..b79f3a1a5b6c 100644--- a/docker-compose.sandbox.yml+++ b/docker-compose.sandbox.yml@@ -39,6 +39,8 @@ services:path /epath /e/*path /i/v0/*+ path /i/v1/analytics/events+ path /i/v1/analytics/events/path /batchpath /batch*path /capture