Skip to content

Commit 786562c

Browse files
committed
re-enable posthog recordings
1 parent d2f2fb0 commit 786562c

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

apps/dashboard/instrumentation-client.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
1414
const postHogKey = getPublicEnvVar('NEXT_PUBLIC_POSTHOG_KEY') ?? "phc_vIUFi0HzHo7oV26OsaZbUASqxvs8qOmap1UBYAutU4k";
1515
if (postHogKey.length > 5) {
1616
posthog.init(postHogKey, {
17-
// We use Sentry's Replay integration below for error debugging. Keep
18-
// PostHog session recording off to avoid loading its lazy recorder, which
19-
// is the source of Sentry issue STACK-SERVER-1NK:
20-
// "Called on script loaded before session recording is available".
21-
// PostHog documents `disable_session_recording: true` as the config-level
22-
// way to prevent automatic web session recording.
23-
// Source: https://posthog.com/docs/session-replay/how-to-control-which-sessions-you-record
24-
disable_session_recording: true,
17+
session_recording: {
18+
maskAllInputs: false,
19+
maskInputOptions: {
20+
password: true,
21+
},
22+
},
2523
defaults: '2025-11-30',
2624
api_host: "/consume",
2725
ui_host: "https://eu.i.posthog.com",

0 commit comments

Comments
 (0)