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(flags): copy flag calls to flag_evaluations in local dev (#106376)

Phil Haacke1f2bc6466a0
diff --git a/.env.development b/.env.development
index 85ac9b4bc8ed..063ac2a5358d 100644
--- a/.env.development
+++ b/.env.development
@@ -36,6 +36,13 @@ ERROR_TRACKING_CYMBAL_BASE_URL=http://lvh.me:3302
# Duckgres host port
DUCKGRES_PORT=15432
+# Ingestion also writes $feature_flag_called events to the flag_evaluations table, for every team.
+# The write happens only when all three are set. Without it, a team on a flag_evaluations
+# mode shows no data in the flag Usage tab.
+INGESTION_OUTPUT_FLAG_EVALUATIONS_TOPIC=clickhouse_flag_evaluations
+INGESTION_FLAG_EVALUATIONS_MODE=dual_write
+INGESTION_FLAG_EVALUATIONS_TEAMS=*
+
# Dagster
DAGSTER_UI_HOST=localhost
DAGSTER_UI_PORT=3030