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
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK versions 9 and 10. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
14
+
15
+
Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.
16
+
17
+
### Major Changes
18
+
19
+
- Ensure IP address is only inferred by Relay if `sendDefaultPii` is `true` ([#5111](https://github.com/getsentry/sentry-react-native/pull/5111))
20
+
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
21
+
-`Sentry.captureUserFeedback` removed, use `Sentry.captureFeedback` instead ([#4855](https://github.com/getsentry/sentry-react-native/pull/4855))
22
+
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
23
+
-`shutdownTimeout` moved from `core` to `@sentry/react-native`
24
+
-`hasTracingEnabled` was renamed to `hasSpansEnabled`
25
+
- You can no longer drop spans or return null on `beforeSendSpan` hook
Here are the altered/unaltered types, make sure to update your UI filters and alerts.
28
+
29
+
Unaltered: string, null, number, and undefined values remain unchanged.
30
+
31
+
Altered: Boolean values are now capitalized: true -> True, false -> False.
32
+
33
+
### Removed types
34
+
35
+
- TransactionNamingScheme
36
+
- Request
37
+
- Scope (prefer using the Scope class)
38
+
39
+
### Other removed items.
40
+
41
+
-`autoSessionTracking` from options.
42
+
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
43
+
-`enableTracing`. Instead, set `tracesSampleRate` to a value greater than `zero` to `enable tracing`, `0` to keep tracing integrations active without sampling, or `undefined` to disable the performance integration.
44
+
-`getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
45
+
-`spanId` from propagation `context`
46
+
- metrics API
47
+
-`transactionContext` from `samplingContext`
48
+
-`@sentry/utils` package, the exports were moved to `@sentry/core`
- Expose `logger` and `consoleLoggingIntegration` ([#4930](https://github.com/getsentry/sentry-react-native/pull/4930))
55
+
- Remove deprecated `appOwnership` constant use in Expo Go detection ([#4893](https://github.com/getsentry/sentry-react-native/pull/4893))
56
+
- Disable AppStart and NativeFrames in unsupported environments (web, Expo Go) ([#4897](https://github.com/getsentry/sentry-react-native/pull/4897))
57
+
- Use `Replay` interface for `browserReplayIntegration` return type ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
58
+
- Allow using `browserReplayIntegration` without `isWeb` guard ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))
59
+
- The integration returns noop in non-browser environments
60
+
- Use single `encodeUTF8` implementation through the SDK ([#4885](https://github.com/getsentry/sentry-react-native/pull/4885))
61
+
- Use global `TextEncoder` (available with Hermes in React Native 0.74 or higher) to improve envelope encoding performance. ([#4874](https://github.com/getsentry/sentry-react-native/pull/4874))
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
64
+
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
- The `_experiments.enableLogs` and `_experiments.beforeSendLog` options were removed, use the top-level `enableLogs` and `beforeSendLog` options instead. ([#5122](https://github.com/getsentry/sentry-react-native/pull/5122))
67
+
### Features
68
+
69
+
- Add support for Log tracing ([#4827](https://github.com/getsentry/sentry-react-native/pull/4827), [#5122](https://github.com/getsentry/sentry-react-native/pull/5122))
70
+
71
+
To enable it add the following code to your Sentry Options:
14
72
15
73
```js
16
-
// before
17
74
Sentry.init({
18
-
_experiments: {
19
-
enableLogs:true,
20
-
beforeSendLog:log=> {
21
-
return log;
22
-
},
23
-
},
75
+
enableLogs:true,
24
76
});
77
+
```
78
+
79
+
You can also filter the logs being collected by adding `beforeSendLogs`
25
80
26
-
// after
81
+
```js
27
82
Sentry.init({
28
83
enableLogs:true,
29
84
beforeSendLog:log=> {
@@ -32,11 +87,40 @@ Sentry.init({
32
87
});
33
88
```
34
89
90
+
- Automatically detect Release name and version for Expo Web ([#4967](https://github.com/getsentry/sentry-react-native/pull/4967))
91
+
92
+
### Fixes
93
+
94
+
- Align span description with other platforms (#4636) by @krystofwoldrich
95
+
- Tags with symbol are now logged ([#4965](https://github.com/getsentry/sentry-react-native/pull/4965))
96
+
- IgnoreError now filters Native errors ([#4948](https://github.com/getsentry/sentry-react-native/pull/4948))
97
+
98
+
You can use strings to filter errors or RegEx for filtering with a pattern.
99
+
100
+
example:
101
+
102
+
```typescript
103
+
ignoreErrors: [
104
+
'1234', // Will filter any error message that contains 1234.
105
+
'.*1234', // Will not filter as regex, instead will filter messages that contains '.*1234"
106
+
/.*1234/, // Regex will filter any error message that ends with 1234
107
+
/.*1234.*/// Regex will filter any error message that contains 1234.
108
+
]
109
+
```
110
+
111
+
- Expo Updates Context is passed to native after native init to be available for crashes ([#4808](https://github.com/getsentry/sentry-react-native/pull/4808))
112
+
- Expo Updates Context values should all be lowercase ([#4809](https://github.com/getsentry/sentry-react-native/pull/4809))
113
+
- Avoid duplicate network requests (fetch, xhr) by default ([#4816](https://github.com/getsentry/sentry-react-native/pull/4816))
114
+
-`traceFetch` is disabled by default on mobile as RN uses a polyfill which will be traced by `traceXHR`
115
+
35
116
### Dependencies
36
117
37
-
- Bump JavaScript SDK from v10.7.0 to v10.8.0 ([#5123](https://github.com/getsentry/sentry-react-native/pull5123))
118
+
- Bump JavaScript SDK from v8.54.0 to v10.8.0 ([#5123](https://github.com/getsentry/sentry-react-native/pull5123))
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
349
+
350
+
Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.
351
+
352
+
### Fixes
353
+
354
+
- Expo Updates Context is passed to native after native init to be available for crashes ([#4808](https://github.com/getsentry/sentry-react-native/pull/4808))
355
+
- Expo Updates Context values should all be lowercase ([#4809](https://github.com/getsentry/sentry-react-native/pull/4809))
356
+
- Avoid duplicate network requests (fetch, xhr) by default ([#4816](https://github.com/getsentry/sentry-react-native/pull/4816))
357
+
-`traceFetch` is disabled by default on mobile as RN uses a polyfill which will be traced by `traceXHR`
358
+
359
+
### Major Changes
360
+
361
+
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
362
+
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
363
+
-`shutdownTimeout` moved from `core` to `@sentry/react-native`
364
+
-`hasTracingEnabled` was renamed to `hasSpansEnabled`
365
+
- You can no longer drop spans or return null on `beforeSendSpan` hook
366
+
367
+
### Removed types
368
+
369
+
- TransactionNamingScheme
370
+
- Request
371
+
- Scope (prefer using the Scope class)
372
+
373
+
### Other removed items.
374
+
375
+
-`autoSessionTracking` from options.
376
+
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
377
+
-`enableTracing`. Instead, set `tracesSampleRate` to a value greater than `zero` to `enable tracing`, `0` to keep tracing integrations active without sampling, or `undefined` to disable the performance integration.
378
+
-`getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
379
+
-`spanId` from propagation `context`
380
+
- metrics API
381
+
-`transactionContext` from `samplingContext`
382
+
-`@sentry/utils` package, the exports were moved to `@sentry/core`
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
388
+
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
- Bump JavaScript SDK from v8.54.0 to v9.12.0 ([#4568](https://github.com/getsentry/sentry-react-native/pull/4568), [#4752](https://github.com/getsentry/sentry-react-native/pull/4752))
- Bump CLI from v2.43.1 to v2.45.0 ([#4804](https://github.com/getsentry/sentry-react-native/pull/4804), [#4818](https://github.com/getsentry/sentry-react-native/pull/4818))
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
506
-
507
-
Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.
508
-
509
-
### Fixes
510
-
511
-
- Expo Updates Context is passed to native after native init to be available for crashes ([#4808](https://github.com/getsentry/sentry-react-native/pull/4808))
512
-
- Expo Updates Context values should all be lowercase ([#4809](https://github.com/getsentry/sentry-react-native/pull/4809))
513
-
- Avoid duplicate network requests (fetch, xhr) by default ([#4816](https://github.com/getsentry/sentry-react-native/pull/4816))
514
-
-`traceFetch` is disabled by default on mobile as RN uses a polyfill which will be traced by `traceXHR`
515
-
516
-
### Major Changes
517
-
518
-
- Set `{{auto}}` if `user.ip_address` is `undefined` and `sendDefaultPii: true` ([#4466](https://github.com/getsentry/sentry-react-native/pull/4466))
519
-
- Exceptions from `captureConsoleIntegration` are now marked as handled: true by default
520
-
-`shutdownTimeout` moved from `core` to `@sentry/react-native`
521
-
-`hasTracingEnabled` was renamed to `hasSpansEnabled`
522
-
- You can no longer drop spans or return null on `beforeSendSpan` hook
523
-
524
-
### Removed types
525
-
526
-
- TransactionNamingScheme
527
-
- Request
528
-
- Scope (prefer using the Scope class)
529
-
530
-
### Other removed items.
531
-
532
-
-`autoSessionTracking` from options.
533
-
To enable session tracking, ensure that `enableAutoSessionTracking` is enabled.
534
-
-`enableTracing`. Instead, set `tracesSampleRate` to a value greater than `zero` to `enable tracing`, `0` to keep tracing integrations active without sampling, or `undefined` to disable the performance integration.
535
-
-`getCurrentHub()`, `Hub`, and `getCurrentHubShim()`
536
-
-`spanId` from propagation `context`
537
-
- metrics API
538
-
-`transactionContext` from `samplingContext`
539
-
-`@sentry/utils` package, the exports were moved to `@sentry/core`
- Fork `scope` if custom scope is passed to `startSpanManual` or `startSpan`
545
-
- On React Native Web, `browserSessionIntegration` is added when `enableAutoSessionTracking` is set to `True` ([#4732](https://github.com/getsentry/sentry-react-native/pull/4732))
- Bump JavaScript SDK from v8.54.0 to v9.12.0 ([#4568](https://github.com/getsentry/sentry-react-native/pull/4568), [#4752](https://github.com/getsentry/sentry-react-native/pull/4752))
- Bump CLI from v2.43.1 to v2.45.0 ([#4804](https://github.com/getsentry/sentry-react-native/pull/4804), [#4818](https://github.com/getsentry/sentry-react-native/pull/4818))
0 commit comments