Visitar URL original
docs(unity): Update screenshots, options and sampling for SDK 4.13.0 by bitsandfoxes · Pull Request #20784 · getsentry/sentry-docs · GitHub
Skip to content

docs(unity): Update screenshots, options and sampling for SDK 4.13.0 - #20784

Open
bitsandfoxes wants to merge 4 commits into
masterfrom
spire/unity-docs
Open

bitsandfoxes wants to merge 4 commits into
masterfrom
spire/unity-docs

Conversation

@bitsandfoxes

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Updates the Unity docs for behaviour in sentry-unity 4.13.0 that pages on master describe and that the open Unity docs PRs (#20412–#20426) don't touch.

  • Screenshots (enriching-events/screenshots): iOS native crashes get a screenshot with build-time and runtime initialization. Setting SetBeforeCaptureScreenshot or SetBeforeSendScreenshot turns iOS crash screenshots off, because the callbacks can't run during a crash. Events sentry-cocoa captures itself, such as failed HTTP requests, don't get a screenshot. On Windows, sentry-native attaches crash screenshots whether or not the callbacks are set.
  • Options page:
    • SetBeforeCaptureScreenshot and SetBeforeSendScreenshot say that setting them turns off iOS native crash screenshots.
    • AttachScreenshot says that native crashes on iOS and Windows also get a screenshot.
    • SendDefaultPii lists what it adds in Unity: the device name and the device's unique identifier, and the user name with IsEnvironmentUser. Native crashes on Windows, Linux, macOS with the Native backend, and consoles carry the device name only with this option. Native crashes on iOS, Android, and macOS with the Cocoa backend don't carry it.
  • Sampling: the error sample rate must be greater than 0, and the configuration window's Event Sample Rate accepts 0.01 to 1. Native crashes on Android, iOS, and macOS with the Cocoa backend follow the rate. On Windows, Linux, macOS with the Native backend, and consoles, the native SDK always sends crashes.

Each statement was checked against the sentry-unity 4.13.0 source: UnityScopeIntegration, the Cocoa, Android and Native context writers and bridges, sentry-native's sentry_core.c, sentry-java's SentryClient, and the .NET SentryOptions.SampleRate setter. lint-trailing-slashes and typos pass.

Pages to check on the preview:

  • /platforms/unity/enriching-events/screenshots/
  • /platforms/unity/configuration/options/
  • /platforms/unity/configuration/sampling/

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've supplied a deadline.

Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

sentry-cocoa now attaches screenshots to iOS native crashes with both
runtime and build-time initialization, and only to crashes. Setting
SetBeforeCaptureScreenshot or SetBeforeSendScreenshot turns them off.

Refs getsentry/sentry-unity#2941
The error sample rate must be greater than 0, and native crashes on
Android, iOS, and macOS with the Cocoa backend follow it. SendDefaultPii
gates the device name, also on native crashes on desktop and consoles,
and AttachScreenshot covers native crashes on iOS and Windows.
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Nov 13, 2026 11:54am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Nov 13, 2026 11:54am UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Nov 13, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 13, 2026 11:48
@bitsandfoxes
bitsandfoxes changed the base branch from docs/unity-ios-native-crash-screenshots to master November 13, 2026 12:33
@bitsandfoxes
bitsandfoxes marked this pull request as ready for review November 13, 2026 13:06
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 13, 2026 13:06
@cursor

cursor Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Getting ready to monitor this change · Rollout details

Status Service Environment
⏳ Getting ready to monitor this change

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — dd8545eb Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant