Requested by: @alwx
Merge target: (default)
Quick links:
Assign the accepted label to this issue to approve the release.
Targets
Checked targets will be skipped (either already published or user-requested skip). Uncheck to retry a target.
📋 Changelog
Features
- Add
onNativeLog callback to intercept and forward native SDK logs to JavaScript console (#5622)
- The callback receives native log events with
level, component, and message properties
- Only works when
debug: true is enabled in Sentry.init
- Use
consoleSandbox inside the callback to prevent feedback loops with Sentry's console integration
import * 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}`
);
});
}
});
- 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:
{
"scripts": {
"eas-build-on-complete": "sentry-eas-build-on-complete"
}
}
Set SENTRY_DSN in your EAS secrets, and optionally SENTRY_EAS_BUILD_CAPTURE_SUCCESS=true to also capture successful builds.
Fixes
- App start data not attached to sampled transactions when preceded by unsampled transactions (#5756)
- Resolve relative
SOURCEMAP_FILE paths against the project root in the Xcode build script (#5730)
- Fixes the issue with unit mismatch in
adjustTransactionDuration (#5740)
- Handle
inactive state for spans (#5742)
Dependencies
- Bump JavaScript SDK from v10.39.0 to v10.42.0 (#5715, #5744, #5753)
- Bump Bundler Plugins from v4.9.1 to v5.1.1 (#5700)
- Bump CLI from v3.2.2 to v3.3.0 (#5743, #5762)
- Bump Cocoa SDK from v9.5.1 to v9.6.0 (#5759)
Requested by: @alwx
Merge target: (default)
Quick links:
Assign the accepted label to this issue to approve the release.
Targets
Checked targets will be skipped (either already published or user-requested skip). Uncheck to retry a target.
📋 Changelog
Features
onNativeLogcallback to intercept and forward native SDK logs to JavaScript console (#5622)level,component, andmessagepropertiesdebug: trueis enabled inSentry.initconsoleSandboxinside the callback to prevent feedback loops with Sentry's console integrationpackage.json:{ "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.Fixes
SOURCEMAP_FILEpaths against the project root in the Xcode build script (#5730)adjustTransactionDuration(#5740)inactivestate for spans (#5742)Dependencies