PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.53k stars 1.29k forks source link

Support session recording feature flag per platform/SDK #25538

Open marandaneto opened 1 week ago

marandaneto commented 1 week ago

Feature request

Is your feature request related to a problem?

https://posthoghelp.zendesk.com/agent/tickets/18972

Describe the solution you'd like

The ability to set a session recording feature flag that enables or disables session recording based on that platform (or SDK - such as Mobile/Web.

Describe alternatives you've considered

Use different projects for now.

Additional context

Debug info

- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]
pauldambra commented 6 days ago

I think this makes a lot of sense... ultimately this should be in feature flag product too IMO but given we return ["my-flag": true] in the API that'd be tricky.

For replay we need to think about how we let people set controls per platform 🤔

pauldambra commented 6 days ago

cc @dmarticus to sit in the back of your mind for feature flags... when folk are using multiple platforms e.g. android, ios, web we don't have a good way (I believe) of saying "this flag should be on for all users on Android only" given each SDK always knows which SDK it is this should be possible if there's a nice way of the API returning the info...