From c09123d027d720797b857fc54e10a3e2441271ed Mon Sep 17 00:00:00 2001 From: jnsdls Date: Sat, 21 Jun 2025 19:22:41 +0000 Subject: [PATCH] [Dashboard] Replace Sentry Replay with PostHog integration (#7406) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### TL;DR Replaced Sentry Replay integration with PostHog Sentry integration in the dashboard app. ### What changed? - Removed the Sentry Replay integration that was blocking media and masking text - Added PostHog Sentry integration with organization set to "thirdweb-dev" and projectId set to 6690186 - Updated the comment to indicate the integration of Sentry with PostHog ### How to test? 1. Verify that Sentry events are properly forwarded to PostHog 2. Check that the PostHog dashboard shows Sentry events from the thirdweb-dev organization 3. Confirm that error tracking continues to work as expected ### Why make this change? This change integrates Sentry with PostHog to consolidate analytics and error tracking data in one platform. This will provide better correlation between user behavior and errors, improving our ability to diagnose issues and understand their impact. --- ## PR-Codex overview This PR focuses on integrating Sentry with PostHog in the `instrumentation-client.ts` file, replacing the previous Sentry Session Replay configuration. ### Detailed summary - Removed the previous Sentry replay integration configuration. - Added `posthog.sentryIntegration` with specified `organization` and `projectId`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/dashboard/src/instrumentation-client.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/dashboard/src/instrumentation-client.ts b/apps/dashboard/src/instrumentation-client.ts index 34792d3ab82..1c847944677 100644 --- a/apps/dashboard/src/instrumentation-client.ts +++ b/apps/dashboard/src/instrumentation-client.ts @@ -99,12 +99,11 @@ Sentry.init({ "Non-Error promise rejection captured", ], - // You can remove this option if you're not planning to use the Sentry Session Replay feature: + // integrate sentry with posthog integrations: [ - Sentry.replayIntegration({ - blockAllMedia: true, - // Additional Replay configuration goes in here, for example: - maskAllText: true, + posthog.sentryIntegration({ + organization: "thirdweb-dev", + projectId: 6690186, }), ],