Releases: getsentry/sentry-react-native
5.9.1
5.9.0
Important Note
Do not use this version if you use CocoaPods with use_frameworks!
option. It introduces a bug where the project won't compile.
This has been fixed in version 5.9.1
.
Features
-
Add support for React Native mixed stacktraces (#3201)
In the current
react-native@nightly
(0.73.0-nightly-20230809-cb60e5c67
) JS errors from native modules can
contain native JVM or Objective-C exception stack trace. Both JS and native stack trace
are processed by default no configuration needed. -
Add
tracePropagationTargets
option (#3230)This release adds support for distributed tracing
without requiring performance monitoring to be active on the React Native SDK.
This means even if there is no sampled transaction/span, the SDK will still propagate traces to downstream services.
Distributed Tracing can be configured with thetracePropagationTargets
option,
which controls what requests to attach thesentry-trace
andbaggage
HTTP headers to (which is what propagates tracing information).Sentry.init({ tracePropagationTargets: ["third-party-site.com", /^https:\/\/yourserver\.io\/api/], });
Fixes
Sentry.init
must be called beforeSentry.wrap
(#3227)- The SDK now shows warning if incorrect order is detected
- Stall Time is no longer counted when App is in Background. (#3211)
- Use application variant instead of variant output to hook to correct package task for modules cleanup (#3161)
- Fix
isNativeAvailable
after SDK reinitialization (#3200)
Dependencies
5.8.1
5.8.0
Features
-
Alpha support for Hermes JavaScript Profiling (#3057)
Profiling is disabled by default. To enable it, configure both
tracesSampleRate
andprofilesSampleRate
when initializing the SDK:Sentry.init({ dsn: '__DSN__', tracesSampleRate: 1.0, _experiments: { // The sampling rate for profiling is relative to TracesSampleRate. // In this case, we'll capture profiles for 100% of transactions. profilesSampleRate: 1.0, }, });
More documentation on profiling and current limitations can be found here.
Fixes
- Warn users about multiple versions of
promise
package which can cause unexpected behavior like undefinedPromise.allSettled
(#3162) - Event is enriched with all the Android context on the JS layer and you can filter/modify all the data in the
beforeSend
callback similarly to iOS. (#3170)
Dependencies
5.7.1
5.7.0
5.6.0
Features
- Overwrite Expo bundle names in stack frames (#3115)
- This enables source maps to resolve correctly without using
sentry-expo
package
- This enables source maps to resolve correctly without using
Fixes
- Disable
enableNative
if Native SDK is not available (#3099) - Dynamically resolve
collectModulesScript
path to support monorepos (#3092) - Native wrapper methods don't throw disabled error after re-initializing (#3093)