Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: public option to disable memeory introspection - #8571

#8571
Open
NinjaLikesCheez wants to merge 4 commits into
maingetsentry/sentry-cocoa:mainfrom
feat/disable-memory-introspectiongetsentry/sentry-cocoa:feat/disable-memory-introspectionCopy head branch name to clipboard
Open

feat: public option to disable memeory introspection#8571
NinjaLikesCheez wants to merge 4 commits into
maingetsentry/sentry-cocoa:mainfrom
feat/disable-memory-introspectiongetsentry/sentry-cocoa:feat/disable-memory-introspectionCopy head branch name to clipboard

Conversation

@NinjaLikesCheez

@NinjaLikesCheez NinjaLikesCheez commented Jul 27, 2026

Copy link
Copy Markdown
Member

📜 Description

Provide a public option to disable memory introspection on the crash reporter. This allows users to opt out of sending stack contents near the crash site, which may contain sensitive information.

💡 Motivation and Context

This change was requested by a user in #7501 to limit potential sensitive information disclosure.

💚 How did you test it?

  • Ran tests locally
  • CI runs

📝 Checklist

You have to check all boxes before merging:

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • If I added a new public API, I also added it to the SentryObjC wrapper.

Closes #7501
sentry-docs PR: getsentry/sentry-docs#18838

@NinjaLikesCheez NinjaLikesCheez self-assigned this Jul 27, 2026
@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- public option to disable memeory introspection ([#8571](https://github.com/getsentry/sentry-cocoa/pull/8571))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against c42afb5

@NinjaLikesCheez
NinjaLikesCheez force-pushed the feat/disable-memory-introspection branch from 2d52405 to c260f22 Compare July 27, 2026 08:34
@NinjaLikesCheez NinjaLikesCheez added the run-full-ci Allows gated GitHub Action workflows to run for a labelled pull request label Jul 27, 2026
@sentry

sentry Bot commented Jul 27, 2026

Copy link
Copy Markdown

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
SDK-Size io.sentry.sample.SDK-Size 9.23.0 (1) Release

⚙️ sentry-cocoa Build Distribution Settings

NinjaLikesCheez added a commit to getsentry/sentry-docs that referenced this pull request Jul 27, 2026
Add documentation for the new enableMemoryIntrospection option that allows
users to control whether memory introspection data is included in crash
reports. This option helps users manage sensitive data by allowing them to
disable stack contents capture near crash sites.

- Add enableMemoryIntrospection option to configuration options
- Update sensitive data documentation to mention memory introspection
- Link between the two documentation sections for better discoverability

Ref: getsentry/sentry-cocoa#8571
@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1221.11 ms 1257.24 ms 36.14 ms
Size 24.14 KiB 1.25 MiB 1.23 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
ce33dcf 1236.42 ms 1267.76 ms 31.34 ms
0a8fa8a 1230.72 ms 1261.64 ms 30.91 ms
4455127 1216.29 ms 1250.00 ms 33.71 ms
4e7765a 1230.37 ms 1265.84 ms 35.47 ms
b557385 1211.45 ms 1252.67 ms 41.22 ms
3efa7b5 1226.55 ms 1260.66 ms 34.11 ms
0303c4f 1229.73 ms 1264.79 ms 35.06 ms
8469478 1240.30 ms 1277.07 ms 36.76 ms
bbc91e5 1215.94 ms 1243.26 ms 27.32 ms
5bcf269 1223.60 ms 1245.49 ms 21.89 ms

App size

Revision Plain With Sentry Diff
ce33dcf 24.14 KiB 1.19 MiB 1.16 MiB
0a8fa8a 24.14 KiB 1.18 MiB 1.15 MiB
4455127 24.14 KiB 1.24 MiB 1.21 MiB
4e7765a 24.14 KiB 1.24 MiB 1.22 MiB
b557385 24.14 KiB 1.23 MiB 1.20 MiB
3efa7b5 24.14 KiB 1.22 MiB 1.19 MiB
0303c4f 24.14 KiB 1.24 MiB 1.21 MiB
8469478 24.14 KiB 1.24 MiB 1.21 MiB
bbc91e5 24.14 KiB 1.17 MiB 1.14 MiB
5bcf269 24.14 KiB 1.17 MiB 1.15 MiB

Previous results on branch: feat/disable-memory-introspection

Startup times

Revision Plain With Sentry Diff
e8c9b80 1217.82 ms 1259.63 ms 41.81 ms

App size

Revision Plain With Sentry Diff
e8c9b80 24.14 KiB 1.24 MiB 1.22 MiB

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c260f22. Configure here.

Comment thread Sources/Swift/Options.swift

@philipphofmann philipphofmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, after clarifying this important comment.

*
* Disabling this will also disable the automatic 'memory corruption' diagnosis for crashes.
*
* @note Default value is @c YES.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

h: Shouldn't we set the default to NO and point this out in the changelog? Strictly speaking you could argue that this is a breaking change, but I this is more of a bugfix so it's fine in a minor.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could argue all PII fixes are fine as breaking changes, so I agree with @philipphofmann

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, I'll make the changes today :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved run-full-ci Allows gated GitHub Action workflows to run for a labelled pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose public option to disable memory introspection in crash reports

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.