From 786562ccd8930d2b90253f0001aecfe59a783298 Mon Sep 17 00:00:00 2001 From: mantrakp04 Date: Sun, 3 May 2026 23:30:57 -0700 Subject: [PATCH] re-enable posthog recordings --- apps/dashboard/instrumentation-client.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/dashboard/instrumentation-client.ts b/apps/dashboard/instrumentation-client.ts index e58f4d8379..f8a83551c9 100644 --- a/apps/dashboard/instrumentation-client.ts +++ b/apps/dashboard/instrumentation-client.ts @@ -14,14 +14,12 @@ export const onRouterTransitionStart = Sentry.captureRouterTransitionStart; const postHogKey = getPublicEnvVar('NEXT_PUBLIC_POSTHOG_KEY') ?? "phc_vIUFi0HzHo7oV26OsaZbUASqxvs8qOmap1UBYAutU4k"; if (postHogKey.length > 5) { posthog.init(postHogKey, { - // We use Sentry's Replay integration below for error debugging. Keep - // PostHog session recording off to avoid loading its lazy recorder, which - // is the source of Sentry issue STACK-SERVER-1NK: - // "Called on script loaded before session recording is available". - // PostHog documents `disable_session_recording: true` as the config-level - // way to prevent automatic web session recording. - // Source: https://posthog.com/docs/session-replay/how-to-control-which-sessions-you-record - disable_session_recording: true, + session_recording: { + maskAllInputs: false, + maskInputOptions: { + password: true, + }, + }, defaults: '2025-11-30', api_host: "/consume", ui_host: "https://eu.i.posthog.com",