Skip to content

chore(deps): update Cocoa SDK to v9.31.0 - #5769

Merged
jamescrosswell merged 2 commits into
mainfrom
deps/modules/sentry-cocoa
Oct 22, 2026
Merged

jamescrosswell merged 2 commits into
mainfrom
deps/modules/sentry-cocoa

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bumps modules/sentry-cocoa from 9.30.2 to 9.31.0.

Auto-generated by a dependency updater.

Changelog

9.31.0

Features

  • Add experimental MetricKit hang flame graph attachments via options.experimental.metrickit.hangReportingMode = .flamegraphAttachment, also available through SentryObjC. The default .legacy mode reports the flattened call stack tree, which is also retained when flame graph attachment creation fails (#9347)

Fixes

  • Resolve the application state at UIApplicationDidFinishLaunchingNotification when the SDK starts before UIApplication exists, such as from a SwiftUI App.init. A process launched in the background was treated as active for its whole lifetime, which let the app hang tracker report fatal app hangs with an idle main thread (#8988)
  • Keep the UI profiler running when SentrySDK.startProfiler() is called before a requested stop takes effect at the end of the current chunk (#9401)
  • Increase the crash report read limit in SentryCrash to 20 MB (#9386)
  • Stop applying the current scope, app state and mutable device data to MetricKit events from an earlier app run. These events carry the app and OS versions of the diagnostic and the stable device attributes, while breadcrumbs, user, tags, extras, scope attachments and the current replay stay out. Diagnostics recorded by the running process keep the scope data (#9297)

Internal

  • Add scope and debug image serialization APIs for hybrid SDKs through SentrySDK.internal.serializer and SentryObjCSDK.internal.serializer (#9403).
    The public SentrySerializable protocol and serialize() methods will be removed in the next major release.

@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Oct 22, 2026
@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Oct 22, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-cocoa branch from 2ae6689 to 25c1f06 Compare October 22, 2026 03:01
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 22, 2026
@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.12%. Comparing base (04cac0d) to head (2bd5cc6).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5769      +/-   ##
==========================================
- Coverage   76.13%   76.12%   -0.01%     
==========================================
  Files         528      528              
  Lines       19579    19579              
  Branches     3829     3829              
==========================================
- Hits        14906    14905       -1     
- Misses       3791     3792       +1     
  Partials      882      882              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Cocoa 9.31.0 adds SentryObjCExperimentalOptions.metrickit, which returns SentryObjCMetricKitOptions. That type isn't in the patch script's KeepInterfaces list, so the regenerated bindings failed to compile with CS0246. .NET doesn't expose MetricKit, so drop the property alongside the other option properties that reference types we don't bind.

The rest is Objective Sharpie output: serializeScope: and serializeDebugMeta: on the internal serializer API, and the SentryObjCMetricKitHangReportingMode enum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@jamescrosswell jamescrosswell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated approval: eligibility script verdict MERGE (CI green, mergeable, no human change-request, no breaking-change language).

@jamescrosswell
jamescrosswell merged commit 4ca2609 into main Oct 22, 2026
48 checks passed
@jamescrosswell
jamescrosswell deleted the deps/modules/sentry-cocoa branch October 22, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants