Skip to content

Commit aa3237a

Browse files
misc(changelog): Add V6 Beta changes ordered by importance
1 parent ef915a6 commit aa3237a

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

CHANGELOG.md

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

3+
## Unreleased
4+
5+
This is a beta version of the next major version of the Sentry React Native SDK 6.0.0.
6+
Please, read the changes listed below as well as the changes made in the underlying
7+
Sentry Javascript SDK 8.0.0 ([JS Docs](https://docs.sentry.io/platforms/javascript/guides/react/migration/v7-to-v8/)).
8+
9+
### Major Changes
10+
11+
- React Native Tracing options were moved to the root options
12+
13+
```js
14+
import Sentry from '@sentry/react-native';
15+
16+
Sentry.init({
17+
tracesSampleRate: 1.0,
18+
enableAppStartTracking: true, // default true
19+
enableNativeFramesTracking: true, // default true
20+
enableStallTracking: true, // default true
21+
enableUserInteractionTracing: true, // default false
22+
integrations: [
23+
Sentry.reactNativeTracingIntegration({
24+
beforeStartSpan: (startSpanOptions) => {
25+
startSpanOptions.name = 'New Name';
26+
return startSpanOptions;
27+
},
28+
}),
29+
Sentry.appStartIntegration({
30+
standalone: false, // default false
31+
}),
32+
],
33+
});
34+
```
35+
36+
- New React Navigation Integration interface ([#4003](https://github.com/getsentry/sentry-react-native/pull/4003))
37+
38+
```js
39+
import Sentry from '@sentry/react-native';
40+
import { NavigationContainer } from '@react-navigation/native';
41+
42+
const reactNavigationIntegration = Sentry.reactNavigationIntegration();
43+
44+
Sentry.init({
45+
tracesSampleRate: 1.0,
46+
integrations: [reactNavigationIntegration],
47+
});
48+
49+
function RootComponent() {
50+
const navigation = React.useRef(null);
51+
52+
return <NavigationContainer ref={navigation}
53+
onReady={() => {
54+
reactNavigationIntegration.registerNavigationContainer(navigation);
55+
}}>
56+
</NavigationContainer>;
57+
}
58+
```
59+
60+
- Removed `beforeNavigate` use `beforeStartSpan` instead ([#3998](https://github.com/getsentry/sentry-react-native/pull/3998))
61+
- `beforeStartSpan` is executed before the span start, compared to `beforeNavigate` which was executed before the navigation ended (after the span was created)
62+
63+
### Dependencies
64+
65+
- Bump JavaScript SDK from v7.119.0 to v8.27.0 ([#3910](https://github.com/getsentry/sentry-react-native/pull/3910), [#3851](https://github.com/getsentry/sentry-react-native/pull/3851))
66+
- [changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#8270)
67+
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.119.0...8.27.0)
68+
69+
### Other Changes
70+
71+
- Native Frames uses `spanId` to attach frames replacing `traceId` ([#4030](https://github.com/getsentry/sentry-react-native/pull/4030))
72+
- Removed deprecated ReactNativeTracing option `idleTimeout` use `idleTimeoutMs` instead ([#3998](https://github.com/getsentry/sentry-react-native/pull/3998))
73+
- Removed deprecated ReactNativeTracing option `maxTransactionDuration` use `finalTimeoutMs` instead ([#3998](https://github.com/getsentry/sentry-react-native/pull/3998))
74+
- New Native Frames Integration ([#3996](https://github.com/getsentry/sentry-react-native/pull/3996))
75+
- New Stall Tracking Integration ([#3997](https://github.com/getsentry/sentry-react-native/pull/3997))
76+
- New User Interaction Tracing Integration ([#3999](https://github.com/getsentry/sentry-react-native/pull/3999))
77+
- New App Start Integration ([#3852](https://github.com/getsentry/sentry-react-native/pull/3852))
78+
- By default app start spans are attached to the first created transaction.
79+
- Standalone mode creates single root span (transaction) including only app start data.
80+
- New React Native Navigation Integration interface ([#4003](https://github.com/getsentry/sentry-react-native/pull/4003))
81+
82+
```js
83+
import Sentry from '@sentry/react-native';
84+
import { Navigation } from 'react-native-navigation';
85+
86+
Sentry.init({
87+
tracesSampleRate: 1.0,
88+
integrations: [
89+
Sentry.reactNativeNavigationIntegration({ navigation: Navigation })
90+
],
91+
});
92+
```
93+
394
## 6.0.0-alpha.2
495

596
- Only internal changes. No SDK changes.

0 commit comments

Comments
 (0)