Skip to content

Commit 0b74944

Browse files
misc(replay): Add Mobile Replay Public Beta changelog (#3943)
1 parent 222c9dd commit 0b74944

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Features
6+
7+
- Session Replay Public Beta ([#3830](https://github.com/getsentry/sentry-react-native/pull/3830))
8+
9+
To enable Replay use the `replaysSessionSampleRate` or `replaysOnErrorSampleRate` options.
10+
11+
```js
12+
import * as Sentry from '@sentry/react-native';
13+
14+
Sentry.init({
15+
_experiments: {
16+
replaysSessionSampleRate: 1.0,
17+
replaysOnErrorSampleRate: 1.0,
18+
},
19+
});
20+
```
21+
22+
To add React Component Names use `annotateReactComponents` in `metro.config.js`.
23+
24+
```js
25+
// For Expo
26+
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
27+
const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true });
28+
29+
// For RN
30+
const { getDefaultConfig } = require('@react-native/metro-config');
31+
const { withSentryConfig } = require('@sentry/react-native/metro');
32+
module.exports = withSentryConfig(getDefaultConfig(__dirname), { annotateReactComponents: true });
33+
```
34+
35+
To change default redaction behavior add the `mobileReplayIntegration`.
36+
37+
```js
38+
import * as Sentry from '@sentry/react-native';
39+
40+
Sentry.init({
41+
_experiments: {
42+
replaysSessionSampleRate: 1.0,
43+
replaysOnErrorSampleRate: 1.0,
44+
},
45+
integrations: [
46+
Sentry.mobileReplayIntegration({
47+
maskAllImages: true,
48+
maskAllVectors: true,
49+
maskAllText: true,
50+
}),
51+
],
52+
});
53+
```
54+
55+
To learn more visit [Sentry's Mobile Session Replay](https://docs.sentry.io/product/explore/session-replay/mobile/) documentation page.
56+
57+
### Dependencies
58+
59+
- Bump Android SDK from v7.11.0-alpha.2 to v7.12.0-alpha.4 ([#3830](https://github.com/getsentry/sentry-react-native/pull/3830))
60+
- [changelog](https://github.com/getsentry/sentry-java/blob/7.12.0-alpha.3/CHANGELOG.md#7120-alpha4)
61+
- [diff](https://github.com/getsentry/sentry-java/compare/7.11.0-alpha.2...7.12.0-alpha.4)
62+
- Bump Cocoa SDK from v8.30.0 to v8.30.1 ([#3936](https://github.com/getsentry/sentry-react-native/pull/3936))
63+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8301)
64+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.30.0...8.30.1)
65+
366
## 5.26.0-alpha.3
467

568
### Features

0 commit comments

Comments
 (0)