Skip to content

Commit c09123d

Browse files
committed
[Dashboard] Replace Sentry Replay with PostHog integration (#7406)
### 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. <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex -->
1 parent b61ce67 commit c09123d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/dashboard/src/instrumentation-client.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,11 @@ Sentry.init({
9999
"Non-Error promise rejection captured",
100100
],
101101

102-
// You can remove this option if you're not planning to use the Sentry Session Replay feature:
102+
// integrate sentry with posthog
103103
integrations: [
104-
Sentry.replayIntegration({
105-
blockAllMedia: true,
106-
// Additional Replay configuration goes in here, for example:
107-
maskAllText: true,
104+
posthog.sentryIntegration({
105+
organization: "thirdweb-dev",
106+
projectId: 6690186,
108107
}),
109108
],
110109

0 commit comments

Comments
 (0)