Skip to content

publish: getsentry/sentry-capacitor@4.1.0 #8514

Description

@sentry-release-bot

Requested by: @lucas-zimerman

Merge target: (default)

Quick links:

Assign the accepted label to this issue to approve the release.

Targets

  • npm
  • github
  • registry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedAdd to approve the deployci-readyCI passed, safe to publish without polling

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions