Skip to content

Commit ecd4725

Browse files
committed
Add example in the changelog
1 parent c288fdb commit ecd4725

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212

1313
- Experimental support of UI profiling on Android ([#5518](https://github.com/getsentry/sentry-react-native/pull/5518))
1414
- Expose iOS options to ignore views from subtree traversal ([#5545](https://github.com/getsentry/sentry-react-native/pull/5545))
15+
- Use `includedViewClasses` to only traverse specific view classes, or `excludedViewClasses` to skip problematic view classes during session replay and screenshot capture
16+
```js
17+
import * as Sentry from '@sentry/react-native';
18+
19+
Sentry.init({
20+
replaysSessionSampleRate: 1.0,
21+
integrations: [
22+
Sentry.mobileReplayIntegration({
23+
includedViewClasses: ['UILabel', 'UIView', 'MyCustomView'],
24+
excludedViewClasses: ['WKWebView', 'UIWebView'],
25+
}),
26+
],
27+
});
28+
```
1529

1630
### Fixes
1731

0 commit comments

Comments
 (0)