yarn @sentry/react-native 8.34.0

6 hours ago

Features

  • Add JavaScript (Hermes) samples to UI profiles on Android 15 and newer (#6966)

    • When _experiments.profilingOptions is set, the SDK sends the Hermes samples as profile chunks of the native profiler session, so the profile of a transaction shows its JavaScript functions.
  • Report JS thread hangs as errors on iOS with the experimental enableJsHangTracking option (#6964)

    • App Hang tracking watches only the UI thread, so an infinite loop in JS sent no event. The new tracker sends an error event when the JS thread stays blocked for longer than jsHangTimeoutInterval (2 seconds by default).
    • With Hermes, the event contains the JS stack trace and the bundle Debug ID for source map symbolication.
    • The tracker does not run in development builds, where a paused JS debugger would look like a hang.
    Sentry.init({
      dsn: '__DSN__',
      enableJsHangTracking: true,
    });
  • Add longTaskIntegration to report JS thread long tasks as the react_native.long_task.duration metric, also outside of transactions (#6986)

    • It requires React Native 0.82 or newer on the New Architecture. Set minDurationMs (default 200) and sampleRate (default 1) to control what it reports.

Fixes

  • Detect expo/fetch in Expo Router apps on @expo/metro-runtime versions that hide it, so fetch tracing and fetch breadcrumbs are enabled by default (#6965)
  • Enable native logs on Android when enableLogs is set (#6967)
  • Honor <Sentry.Mask> in iOS error screenshots (#6974)

Dependencies

Don't miss a new react-native release

NewReleases is sending notifications on new releases.