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.

chore(capture): drop the v1 sink dev env vars (#115293)

Paweł Ledwoń6d41818cfa69
diff --git a/bin/start-rust-service b/bin/start-rust-service
index 1a27a71273bd..fb20269dd9ba 100755
--- a/bin/start-rust-service
+++ b/bin/start-rust-service
@@ -59,16 +59,6 @@ case "$RS_SVC" in
export LOG_LEVEL=debug
export DEBUG=1
export CAPTURE_OUTPUT_ERROR_TRACKING_TOPIC=${CAPTURE_OUTPUT_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)
@@ -101,17 +91,6 @@ case "$RS_SVC" in
export LOG_LEVEL=debug
export DEBUG=1
export DEV_RUST_SVC_OVERRIDE=capture # we want to run the same "capture" binary in a separate mode
- # v1 sink for `/i/v1/ai/events` (Django's capture_ai_internal). The sink config
- # requires every topic var; `ai` mode only produces to the AI topic.
- 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_ai}
- export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HISTORICAL=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HISTORICAL:-events_plugin_ingestion_ai}
- export CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_OVERFLOW=${CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_OVERFLOW:-events_plugin_ingestion_ai}
- 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-logs)
diff --git a/docker-compose.base.yml b/docker-compose.base.yml
index a26118f098dd..684a3ba1fe32 100644
--- a/docker-compose.base.yml
+++ b/docker-compose.base.yml
@@ -386,15 +386,6 @@ services:
REDIS_URL: 'redis://redis7:6379/'
CAPTURE_MODE: events
RUST_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:master
@@ -430,17 +421,6 @@ services:
# matching the production capture-ai deployment.
CAPTURE_MODE: ai
RUST_LOG: 'info,rdkafka=warn'
- # v1 sink for `/i/v1/ai/events` (Django's capture_ai_internal). The sink config
- # requires every topic var; `ai` mode only produces to the AI topic.
- CAPTURE_V1_SINKS: 'msk'
- CAPTURE_V1_SINK_MSK_KAFKA_HOSTS: 'kafka:9092'
- CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_MAIN: 'events_plugin_ingestion_ai'
- CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_HISTORICAL: 'events_plugin_ingestion_ai'
- CAPTURE_V1_SINK_MSK_KAFKA_TOPIC_OVERFLOW: 'events_plugin_ingestion_ai'
- 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'
capture-logs:
image: ghcr.io/posthog/posthog/capture-logs:master