Skip to content

feat: wire PostHog feature flags#29

Merged
realityinspector merged 1 commit intomainfrom
feat/posthog-feature-flags
Mar 25, 2026
Merged

feat: wire PostHog feature flags#29
realityinspector merged 1 commit intomainfrom
feat/posthog-feature-flags

Conversation

@realityinspector
Copy link
Collaborator

Adds feature_flags.py module, PostHog client initialization, and flag evaluation helpers. Config-gated via POSTHOG_API_KEY.

- Add POSTHOG_API_KEY and POSTHOG_HOST to config
- New app/feature_flags.py: init_posthog(), is_feature_enabled() async
  wrapper, shutdown_posthog() — safe no-op when key not set
- main.py: call init_posthog() on startup, shutdown_posthog() on shutdown
- Add posthog>=3.0.0 to observability extras in pyproject.toml
@realityinspector realityinspector merged commit 02e7dab into main Mar 25, 2026
2 of 3 checks passed
@realityinspector realityinspector deleted the feat/posthog-feature-flags branch March 25, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant