You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Rewrite setup with SplitLayout for better readability
- Add client-side only note in pre-requisites
- Simplify install with skip-to-setup link
- Keep privacy and lazy-loading sections with links
Co-Authored-By: Claude Opus 4.5 <[email protected]>
// Additional SDK configuration goes in here, for example:
20
-
maskAllText:true,
21
-
blockAllMedia:true,
22
-
}),
23
-
],
31
+
integrations: [Sentry.replayIntegration()],
24
32
});
25
33
```
26
34
27
-
### Verify
35
+
</SplitSectionCode>
36
+
</SplitSection>
37
+
38
+
<SplitSection>
39
+
<SplitSectionText>
40
+
41
+
#### Privacy Options
28
42
29
-
While you're testing, we recommend that you set `replaysSessionSampleRate` to `1.0`. This ensures that every user session will be sent to Sentry.
43
+
By default, Replay masks all text and blocks media. Customize privacy settings based on your needs.
30
44
31
-
Once testing is complete, **we recommend lowering this value in production**. We still recommend keeping `replaysOnErrorSampleRate` set to `1.0`, so that, whenever possible, every error has an associated replay with additional debugging context.
45
+
See <PlatformLinkto="/session-replay/privacy/">Session Replay Privacy</PlatformLink> for all options.
32
46
33
-
### PII & Privacy Considerations
47
+
</SplitSectionText>
48
+
<SplitSectionCode>
34
49
35
-
Personally identifiable information (PII), and privacy are important considerations when enabling Session Replay. There are multiple ways in which Sentry helps you avoid collecting PII, including:
-[Masking](/platforms/javascript/session-replay/privacy/#masking), which replaces the text content with something else. (The default behavior being to replace each character with a \*.)
38
-
- Making [Network request, response bodies, and headers](/platforms/javascript/session-replay/privacy/#network-request-and-response-bodies-and-headers) an opt-in feature, because the best way to avoid getting PII into Sentry is by not adding URLs of endpoints that may contain PII.
63
+
</SplitSectionCode>
64
+
</SplitSection>
39
65
40
-
While we have certain privacy considerations in place, Sentry's Session Replays allow you to set up the [privacy configurations](/platforms/javascript/session-replay/privacy/#privacy-configuration) that work best for your use case. For example, if you're working on a static website that's free of PII or other types of private data, you can opt out of the default text masking and image blocking settings.
41
-
To learn more about session replay privacy, [read our docs.](/platforms/javascript/session-replay/privacy/)
66
+
<SplitSection>
67
+
<SplitSectionText>
42
68
43
-
### Lazy-loading Replay
69
+
####Lazy-Loading Replay
44
70
45
-
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`:
71
+
Load Replay only when needed instead of at startup. Useful for reducing initial bundle size.
Open your app, interact with it, then check [**Replays**](https://sentry.io/orgredirect/organizations/:orgslug/replays/) in Sentry to see your session.
0 commit comments