|
1 | 1 | # Changelog |
2 | 2 |
|
| 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 | + |
3 | 66 | ## 5.26.0-alpha.3 |
4 | 67 |
|
5 | 68 | ### Features |
|
0 commit comments