Skip to content

chore(deps): update Cocoa SDK to v9.32.0 - #5835

Merged
jamescrosswell merged 2 commits into
mainfrom
deps/modules/sentry-cocoa
Nov 2, 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.31.0 to 9.32.0.

Auto-generated by a dependency updater.

Changelog

9.32.0

Features

  • Add options.experimental.metrickit.enabledDiagnosticReports to choose which MetricKit diagnostic reports the SDK captures, including crash diagnostics. The option is only available from Swift (#9267)
  • Add attachAllThreads and scope block overloads for capture(event:), capture(error:), capture(exception:), and capture(message:), also available through SentryObjC (#9424)
  • Align the metrics API with the other Sentry SDKs: SentrySDK.metrics.count(_:value:options:), gauge(_:value:options:) and distribution(_:value:options:) take the metric name, the value and SentryMetricOptions with unit, attributes, scope and timestamp. SentryObjC exposes the same API through count:value:options:, gauge:value:options:, distribution:value:options: and SentryObjCMetricOptions. The key-based methods such as count(key:value:attributes:) and countWithKey:value:attributes: keep working but are deprecated and will be removed in v10; use the options-based methods instead (#9453)
  • Capture MetricKit app launch diagnostics on iOS 16 and later and on visionOS when options.experimental.metrickit.enabledDiagnosticReports contains .appLaunch (#9441)
  • Expose options.experimental.metrickit.enabledDiagnosticReports through the SentryObjC SDK as options.experimental.metrickit and through the metrickit key of the options dictionary (#9296)
  • Add breadcrumbs when the hinge of foldable devices such as iPhone Duo opens, closes, or reaches the fully open or closed position, and report the current hinge status as hinge_status in the device context, which requires iOS 27.1 or later and is not available on Mac Catalyst (#9464)
  • Add options.experimental.metrickit.enabledMetricReports to send MetricKit metric payloads as Sentry metrics, such as CPU time, network transfer, memory and app exit counts. Metrics are named metrickit.<group>.<name> and carry the app and OS versions they were recorded with. The option defaults to an empty set and is only available from Swift (#9452)

Fixes

  • Wait for transactions that are still being captured on a background thread when calling flush or close, so short-lived processes no longer lose a transaction finished right before the call (#9415)

  • Keep pending Session Replay video when SentrySDK.replay.stop() follows flush() (#9429)

  • Stop reporting a false watchdog termination on the launch after SentrySDK.close() when app start tracking isn't installed, such as with enableAutoPerformanceTracing disabled (#9451)

  • Prevent NSException crash handling from deadlocking when a suspended thread holds a lock needed to read or format exception metadata (#9463)

  • 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, #9421)

Full CHANGELOG.md diff
 -1,10 +1,29 
 # Changelog
 
+## 9.32.0
+
+### Features
+
+- Add `options.experimental.metrickit.enabledDiagnosticReports` to choose which MetricKit diagnostic reports the SDK captures, including crash diagnostics. The option is only available from Swift ([#9267](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9267))
+- Add `attachAllThreads` and scope block overloads for `capture(event:)`, `capture(error:)`, `capture(exception:)`, and `capture(message:)`, also available through `SentryObjC` ([#9424](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9424))
+- Align the metrics API with the other Sentry SDKs: `SentrySDK.metrics.count(_:value:options:)`, `gauge(_:value:options:)` and `distribution(_:value:options:)` take the metric name, the value and `SentryMetricOptions` with `unit`, `attributes`, `scope` and `timestamp`. `SentryObjC` exposes the same API through `count:value:options:`, `gauge:value:options:`, `distribution:value:options:` and `SentryObjCMetricOptions`. The key-based methods such as `count(key:value:attributes:)` and `countWithKey:value:attributes:` keep working but are deprecated and will be removed in v10; use the options-based methods instead ([#9453](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9453))
+- Capture MetricKit app launch diagnostics on iOS 16 and later and on visionOS when `options.experimental.metrickit.enabledDiagnosticReports` contains `.appLaunch` ([#9441](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9441))
+- Expose `options.experimental.metrickit.enabledDiagnosticReports` through the SentryObjC SDK as `options.experimental.metrickit` and through the `metrickit` key of the options dictionary ([#9296](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9296))
+- Add breadcrumbs when the hinge of foldable devices such as iPhone Duo opens, closes, or reaches the fully open or closed position, and report the current hinge status as `hinge_status` in the device context, which requires iOS 27.1 or later and is not available on Mac Catalyst ([#9464](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9464))
+- Add `options.experimental.metrickit.enabledMetricReports` to send MetricKit metric payloads as Sentry metrics, such as CPU time, network transfer, memory and app exit counts. Metrics are named `metrickit.<group>.<name>` and carry the app and OS versions they were recorded with. The option defaults to an empty set and is only available from Swift ([#9452](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9452))
+
+### Fixes
+
+- Wait for transactions that are still being captured on a background thread when calling `flush` or `close`, so short-lived processes no longer lose a transaction finished right before the call ([#9415](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9415))
+- Keep pending Session Replay video when `SentrySDK.replay.stop()` follows `flush()` ([#9429](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9429))
+- Stop reporting a false watchdog termination on the launch after `SentrySDK.close()` when app start tracking isn't installed, such as with `enableAutoPerformanceTracing` disabled ([#9451](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9451))
+- Prevent NSException crash handling from deadlocking when a suspended thread holds a lock needed to read or format exception metadata ([#9463](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9463))
+
 ## 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](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9347))
+- 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](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9347), [#9421](https://github-redirect.dependabot.com/getsentry/sentry-cocoa/issues/9421))
 
 ### Fixes
 

@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Oct 30, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-cocoa branch from 92b680b to 3a5e3e3 Compare October 30, 2026 03:01
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 30, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-cocoa branch from 3a5e3e3 to f4da613 Compare October 31, 2026 03:01
@codecov

codecov Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.36%. Comparing base (d4a1de1) to head (d01a14a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5835      +/-   ##
==========================================
+ Coverage   76.35%   76.36%   +0.01%     
==========================================
  Files         530      530              
  Lines       19608    19608              
  Branches     3854     3854              
==========================================
+ Hits        14972    14974       +2     
+ Misses       3751     3749       -2     
  Partials      885      885              

☔ 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants