Requested by: @lucas-zimerman
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 (#1249)
-
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/capacitor';
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
strictTraceContinuation and orgId options for trace continuation validation (#1166)
Dependencies
- Bump Android SDK from v8.35.0 to v8.41.0 (#1247)
- Bump JavaScript Sibling SDKs from v9.42.0 to v10.52.0 (#1244)
- Bump Cocoa SDK from v9.8.0 to v9.16.1 (#1248, #1276)
Requested by: @lucas-zimerman
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 (#1249)The callback receives native log events with
level,component, andmessagepropertiesOnly works when
debug: trueis enabled inSentry.initUse
consoleSandboxinside the callback to prevent feedback loops with Sentry's console integrationstrictTraceContinuationandorgIdoptions for trace continuation validation (#1166)Dependencies