+
+## Step 4: Customizing Replays
+
+By default, Session Replay masks sensitive data for privacy. Let's customize this to show specific content that's safe to display.
+
+You can unmask specific elements while keeping sensitive data protected. Add CSS classes or data attributes to elements you want to reveal in replays.
+
+```javascript {tabTitle:Client} {filename:instrumentation-client.(js|ts)}
+import * as Sentry from "@sentry/nextjs";
+
+Sentry.init({
+ dsn: "___PUBLIC_DSN___",
+ integrations: [
+ Sentry.replayIntegration({
+ // Unmask specific elements to show actual content
+ unmask: ['.reveal-content', '[data-safe-to-show]'],
+ // Optionally disable blanket masking for non-sensitive apps
+ maskAllText: false,
+ blockAllMedia: false,
+ }),
+ ],
+ replaysSessionSampleRate: 0.1,
+ replaysOnErrorSampleRate: 1.0,
+ // ... your existing config
+});
+```
+
+```html
+This content will be visible in replays
+Safe user data: {username}
+```
+
+
+
+