From 864166400d17631600e645132cd640e78bd3417c Mon Sep 17 00:00:00 2001
From: Paul D'Ambra
Date: Thu, 26 Oct 2023 17:23:55 +0100
Subject: [PATCH] feat: beta tag for sampling controls
---
.../settings/SessionRecordingSettings.tsx | 385 +++++++++---------
1 file changed, 198 insertions(+), 187 deletions(-)
diff --git a/frontend/src/scenes/session-recordings/settings/SessionRecordingSettings.tsx b/frontend/src/scenes/session-recordings/settings/SessionRecordingSettings.tsx
index 785a5c92ec343..7ff2582193790 100644
--- a/frontend/src/scenes/session-recordings/settings/SessionRecordingSettings.tsx
+++ b/frontend/src/scenes/session-recordings/settings/SessionRecordingSettings.tsx
@@ -1,6 +1,6 @@
import { useActions, useValues } from 'kea'
import { teamLogic } from 'scenes/teamLogic'
-import { LemonBanner, LemonButton, LemonSelect, LemonSwitch, Link } from '@posthog/lemon-ui'
+import { LemonBanner, LemonButton, LemonSelect, LemonSwitch, LemonTag, Link } from '@posthog/lemon-ui'
import { urls } from 'scenes/urls'
import { AuthorizedUrlList } from 'lib/components/AuthorizedUrlList/AuthorizedUrlList'
import { AuthorizedUrlListType } from 'lib/components/AuthorizedUrlList/authorizedUrlListLogic'
@@ -15,6 +15,202 @@ export type SessionRecordingSettingsProps = {
inModal?: boolean
}
+function ReplayCostControl(): JSX.Element {
+ const { updateCurrentTeam } = useActions(teamLogic)
+ const { currentTeam } = useValues(teamLogic)
+
+ return (
+
+ <>
+
+ Replay ingestion controlsBETA
+
+
+ PostHog offers several tools to let you control the number of recordings you collect and which users
+ you collect recordings for.{' '}
+
+ Learn more in our docs
+
+
+ Use this setting to restrict the percentage of sessions that will be recorded. This is useful if you
+ want to reduce the amount of data you collect. 100% means all sessions will be collected. 50% means
+ roughly half of sessions will be collected.
+
+ Setting a minimum session duration will ensure that only sessions that last longer than that value
+ are collected. This helps you avoid collecting sessions that are too short to be useful.
+
- PostHog offers several tools to let you control the number of recordings you collect and which
- users you collect recordings for.{' '}
-
- Learn more in our docs
-
-
- Use this setting to restrict the percentage of sessions that will be recorded. This is useful if
- you want to reduce the amount of data you collect. 100% means all sessions will be collected.
- 50% means roughly half of sessions will be collected.
-
- Setting a minimum session duration will ensure that only sessions that last longer than that
- value are collected. This helps you avoid collecting sessions that are too short to be useful.
-