Skip to content

4.0.0-beta.7

Pre-release
Pre-release

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 09 Dec 21:13

Breaking Changes

  • SetBeforeCaptureScreenshot signature changed from Func<bool> to Func<SentryEvent, bool>, now receiving the event that
    triggered the screenshot capture. This allows context-aware decisions before capture begins. (#2428)
  • SetBeforeCaptureViewHierarchy signature changed from Func<bool> to Func<SentryEvent, bool>, now receiving the event that
    triggered the view hierarchy capture. This allows context-aware decisions before capture begins. (#2429)

Fixes

  • When targeting Windows or Linux with Mono as the scripting backend, to prevent crashes, the native SDK's debug logger integration is disabled. (#2445)

Features

  • Added PlayStation Native Support. The SDK now automatically syncs the scope - tags, breadcrumbs, context - to the native layer, so native crashes have the same rich context as managed events. (#2433)
  • On Windows, and with screenshot capture enabled, the SDK will now also capture and attach a screenshot to native crashes (#2434)
  • Added SetBeforeSendScreenshot(Func<Texture2D, SentryEvent, Texture2D?>) callback that provides the captured screenshot as a
    Texture2D before JPEG compression. (#2428)
    This enables:
    • Modifying the screenshot in-place (e.g., blurring sensitive UI areas, redacting PII)
    • Replacing the screenshot with a different Texture2D
    • Discarding the screenshot by returning null
    • Access to the event context for conditional processing
  • Added SetBeforeSendViewHierarchy(Func<ViewHierarchy, SentryEvent, ViewHierarchy?>) callback that provides the captured
    ViewHierarchy to be modified before compression. (#2429)

Dependencies