Features
- Add
onNativeLogcallback to intercept and forward native SDK logs to JavaScript console (#5622)- The callback receives native log events with
level,component, andmessageproperties - Only works when
debug: trueis enabled inSentry.init - Use
consoleSandboxinside the callback to prevent feedback loops with Sentry's console integrationimport * as Sentry from '@sentry/react-native'; Sentry.init({ debug: true, onNativeLog: ({ level, component, message }) => { // Use consoleSandbox to avoid feedback loops Sentry.consoleSandbox(() => { console.log( `[Sentry Native] [${level.toUpperCase()}] [${component}] ${message}` ); }); } });
- The callback receives native log events with
- Add expo constants on event context (#5748)
- Capture dynamic route params as span attributes for Expo Router navigations (#5750)
- EAS Build Hooks (#5666)
- Capture EAS build events in Sentry. Add the following to your
package.json:Set{ "scripts": { "eas-build-on-complete": "sentry-eas-build-on-complete" } }SENTRY_DSNin your EAS secrets, and optionallySENTRY_EAS_BUILD_CAPTURE_SUCCESS=trueto also capture successful builds.
- Capture EAS build events in Sentry. Add the following to your
Fixes
- App start data not attached to sampled transactions when preceded by unsampled transactions (#5756)
- Resolve relative
SOURCEMAP_FILEpaths against the project root in the Xcode build script (#5730) - Fixes the issue with unit mismatch in
adjustTransactionDuration(#5740) - Handle
inactivestate for spans (#5742)