Skip to content

Releases: getsentry/sentry-cocoa

9.6.0

04 Mar 14:17

Choose a tag to compare

Features

  • Add watchdog termination hang tracker using RunLoop observer. Can be enabled by setting options.experimental.enableWatchdogTerminationsV2 = true (#7464)

Fixes

  • Preserve NSException and C++ exception reason instead of overwriting with unrelated crash_info_message from libswiftCore.dylib (#7515)
  • Fix unexpected null value when unwrapping view controller window (#7508)

9.5.1

25 Feb 14:37

Choose a tag to compare

Fixes

  • Don't report NSException subclasses as C++ exceptions (#7420)
  • Write reports on concurrent crashes (#7340)
  • Resolve data race crash in monitorCachedData (#7423)
  • Don't finish network spans for suspended URL session tasks (#7471)
  • Use different fallback for when MetricKit does not have file path (#7473)

9.5.0

19 Feb 08:43

Choose a tag to compare

Features

  • Enable MetricKit Integration for visionOS (#7466)

Fixes

  • SentryRedactViewHelper had been erroneously made public, it has been removed from the public interface (#7474)
  • Write reports on concurrent crashes (#7340)

9.4.1

11 Feb 17:37

Choose a tag to compare

Improvements

  • Record client report when dropping in beforeSendLog (#7379)

Fixes

  • Cleanup SessionReplay when maximum duration reached (#7421)
  • Fix App hangs report with high durations (#7354)

Deprecations

  • The SentrySwiftUI module is now deprecated. All SwiftUI APIs (SentryTracedView, sentryTrace(), sentryReplayMask(), sentryReplayUnmask()) have been merged into the main Sentry module. You can replace import SentrySwiftUI with import Sentry in your code. The SentrySwiftUI module still works via a re-export but will be removed in the next major version. (#7422)

9.4.0 (Stable)

04 Feb 13:58

Choose a tag to compare

Breaking Changes

  • Sentry.metrics.count(..) does not support units, therefore the API was incorrectly defined. This breaking change applies to a method marked as experimental. (#7358)

Fixes

  • Fix mismatch of in_foreground app context (#7188) The app context in_foreground for handled and unhandled events was sometimes different. This is fixed now by aligning the implementation and adding a new is_active app context field.
  • Fix missing stack traces for NSException objects reported via NSApplication.shared.reportException(_:) on macOS (#7284)

9.3.0 (Stable)

28 Jan 14:47

Choose a tag to compare

Features

  • Transport logs error message for HTTP 413 responses (#7261)
  • Add installGroupsOverride parameter to CheckForUpdateParams and installGroups property to ReleaseInfo for SentryDistribution (#7278)

Fixes

  • Fix deadlock in network reachability observer when restarting the SDK (#7246)

9.2.0 (Stable)

21 Jan 13:51

Choose a tag to compare

Important

This release contains a bug fix to only include user attributes in logs when options.sendDefaultPii = true.
Make sure to enable the option in case you rely on these attributes to be set.

Features

  • Add options options.sessionReplay.includedViewClasses and options.sessionReplay.excludedViewClasses to ignore views from subtree traversal (#7063)
  • Add isiOSAppOnVisionOS, isiOSAppOnMac, isMacCatalystApp to device context #6939
  • Add integration to collect Metrics, enabled by default. Can be disabled by setting options.experimental.enableMetrics = false (#6956)
  • Add implementation for Metrics Protocol with modification of items in options.experimental.beforeSendMetrics (#6960)
  • Add Sentry.metrics.count(..), Sentry.metrics.distribution(..) and Sentry.metrics.gauge(..) to public API (#6957)
  • Add flushing of Metrics to SentrySDK.flush() (#7182)

Fixes

  • Encode SwiftUI internal class names in session replay redaction to avoid false-positive App Store review rejections (#7123)
  • The transport now correctly discard envelopes on 4xx and 5xx responses and records client reports send_error (#6618) This also fixes edge cases in which the SDK kept retrying sending a faulty envelope until the offline cache overflowed.
  • Change default attributes of Logs to only include user attributes when options.sendDefaultPii = true (#7055)
  • Rename log attribute sentry.trace.parent_span_id to span_id (#7055)
  • Fixes stacktraces for MetricKit events (#6908)
  • Fix raw_description in runtime context on Mac Catalyst (#7082)
  • Deprecates configureDarkTheme for user feedback (#7114)
  • Fix incorrect variable assignment for 'sampled' key (#7120)
  • Resolve crash in caused by calling SentryFramesTracker.removeListener(_:) (#7155)

8.58.0 (stable)

09 Jan 13:18

Choose a tag to compare

Features

  • Add options options.sessionReplay.includedViewClasses and options.sessionReplay.excludedViewClasses to ignore views from subtree traversal (#7063)

Fixes

  • Encode SwiftUI internal class names in session replay redaction to avoid false-positive App Store review rejections (#7123)

9.1.1-alpha.0

18 Dec 21:26

Choose a tag to compare

9.1.1-alpha.0 Pre-release
Pre-release

Fixes

  • The transport now correctly discard envelopes on 4xx and 5xx responses and records client reports send_error (#6618) This also fixes edge cases in which the SDK kept retrying sending a faulty envelope until the offline cache overflowed.
  • Change default attributes of Logs to only include user attributes when options.sendDefaultPii = true (#7055)
  • Rename log attribute sentry.trace.parent_span_id to span_id (#7055)

9.1.0 (Stable)

10 Dec 18:52

Choose a tag to compare

Warning

The class SentryDsn has been converted from Objective-C to Swift. While the public API remains the same, you might have to remove imports of the SentryDsn.h from your Objective-C code.
We acknowledge that this is a breaking change introduced in a minor release, but it should have been part of the major release 9.0.0 already before - apologies for any inconveniences caused.

Breaking Changes

  • Refactored type SentryDsn from Objective-C to Swift, removing the SentryDsn.h from the public header files.

Features

  • Add attributes data to SentryScope (#6830)
  • Add SentryScope attributes into log messages (#6834)

Improvements

  • Flush Logs on WillTerminate or WillResignActive Notifications (#6909)

Fixes

  • Save app context information (release name, dist, environment) on app hang events before saving to disk to prevent incorrect version information when an app hang turns fatal (#6998)
  • Disabled automatic session tracking in system extensions to prevent extension blocking and unwanted dock icon behavior (#6962) (#6962)
  • Fixes crash when null values are passed to UIApplication sendAction:to:from:forEvent: (#6970)
  • Fixes user.id not set to installationId if no user is set (#7005)