Bump to sentry-cocoa 10
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- csharp, ios, objective-c
- Domain
- backend-api-design, mobile-dev, testing
Research direction
Start with the dependency update PR at deps/modules/sentry-cocoa, then read scripts/patch-cocoa-bindings.cs, the Cocoa and Android ApplyDataCollection implementations, and integration-test/ios.Tests.ps1. Check the API and defaults against sentry-cocoa's CHANGELOG_V10.md and develop-docs/KSCRASH_DOWNSTREAM_AUDIT.md for the released version. Done means resolving each listed API, crash behavior, and default decision, then raising SentryCocoaSupportedMajor to 10 and shipping in a .NET major.
Written by the indexing model from the issue text.
Description
sentry-cocoa 10 isn't released yet. When it is, the dependency-update workflow opens a deps/modules/sentry-cocoa PR for it. That PR will fail to build: Sentry.Bindings.Cocoa stops when the submodule's major doesn't match SentryCocoaSupportedMajor, which is 9 (#5960). Do the steps below on that PR, then raise SentryCocoaSupportedMajor to 10. A new Cocoa major breaks the .NET SDK too, so it ships in a .NET major.
The list comes from the V10 build of sentry-cocoa 9.35.0 (SDK_V10), before 10.0 was released. Check it against sentry-cocoa's CHANGELOG_V10.md and develop-docs/KSCRASH_DOWNSTREAM_AUDIT.md at the released version.
Data collection
sendDefaultPii is gone, replaced by dataCollection. #5960 closes #5436 by forwarding only UserInfo, because 9.x has nothing else to map onto.
- Add
SentryObjCDataCollection*toKeepInterfacesinscripts/patch-cocoa-bindings.cs. Don't dropSentryObjCOptions.DataCollectionwithRemoveProperty. - In the Cocoa
SentrySdk.ApplyDataCollection, map the resolvedDataCollectionontonativeOptions.DataCollection, asDataCollectionExtensions.ApplyTodoes on Android. Cocoa has no GraphQL category. - Always set
UserInfo, even whenDataCollectionisn't configured. Cocoa'suserInfodefaults totrue, so leaving it unset turns on IP inference and the installation-ID user for apps withSendDefaultPii = false.
Other API changes
-
crashedLastRunandonCrashedLastRunare gone. UselastRunStatusandonLastRunStatusDetermined, which 9.x already has. -
enableAppHangTrackingis gone, with no replacement, soSentryOptions.Native.EnableAppHangTrackingneeds a decision. - Session Replay's
maskAllTextandmaskAllImagesmove tooptions.privacy. -
SentryObjCBreadcrumb.datais read-only.ToCocoaBreadcrumbhas to set each value withsetDataValue:forKey:.
KSCrash
- KSCrash replaces SentryCrash. Keep
scripts/sentry-cocoa.xcconfig, because KSCrash's managed signal handling still readsSENTRY_CRASH_MANAGED_RUNTIME. - Run the crash cases in
integration-test/ios.Tests.ps1. sentry-cocoa found duplicateSIGABRTevents and spuriousEXC_BAD_ACCESSevents for .NET (getsentry/sentry-cocoa#8797).
Changed defaults
For each, decide whether to keep Cocoa's new default or set the 9.x one:
- MetricKit (see #5950)
- Scope persistence (see #5929)
- The installation ID as the fallback user ID
- File manager swizzling
- Dominant language
- C#
- Stars
- 775
- Forks
- 262
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 118
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS samplePossibly taken A pull request linked to this issue is open or already merged. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6071 · 1 comment ·
Maintainers usually reply within 1 day
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Possibly taken @pcbeingused33 claimed this today. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6039 · 3 comments ·
Maintainers usually reply within 1 day
-
.NET Platform: Android Task
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getsentry/sentry-dotnet#6020 · 3 comments ·
Maintainers usually reply within 1 day
-
Move the Blazor WebAssembly sample off the deprecated DevServerPossibly taken A pull request linked to this issue is open or already merged. Open.NET Framework: Blazor
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
getsentry/sentry-dotnet#5906 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Docs MSBuild Needs Docs Update
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-dotnet#5691 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/sentry-dotnet
Similar issues
-
In-car displays show 0 km/h and P while the AV drivesPossibly taken @bazilinskyy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bazilinskyy/coupled-sim#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BaryoDev/umbraco-pwa#196 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/fluentui-blazor#5688 ·
Maintainers usually reply within 1 day
-
bug flaky lsp-transport small
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day