Releases: getsentry/sentry-cocoa
Releases · getsentry/sentry-cocoa
9.6.0
Features
- Add watchdog termination hang tracker using RunLoop observer. Can be enabled by setting
options.experimental.enableWatchdogTerminationsV2 = true(#7464)
Fixes
9.5.1
Fixes
9.5.0
9.4.1
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
SentrySwiftUImodule is now deprecated. All SwiftUI APIs (SentryTracedView,sentryTrace(),sentryReplayMask(),sentryReplayUnmask()) have been merged into the mainSentrymodule. You can replaceimport SentrySwiftUIwithimport Sentryin your code. TheSentrySwiftUImodule still works via a re-export but will be removed in the next major version. (#7422)
9.4.0 (Stable)
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_foregroundapp context (#7188) The app contextin_foregroundfor handled and unhandled events was sometimes different. This is fixed now by aligning the implementation and adding a newis_activeapp context field. - Fix missing stack traces for
NSExceptionobjects reported viaNSApplication.shared.reportException(_:)on macOS (#7284)
9.3.0 (Stable)
9.2.0 (Stable)
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.includedViewClassesandoptions.sessionReplay.excludedViewClassesto 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(..)andSentry.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_idtospan_id(#7055) - Fixes stacktraces for MetricKit events (#6908)
- Fix
raw_descriptioninruntimecontext on Mac Catalyst (#7082) - Deprecates
configureDarkThemefor user feedback (#7114) - Fix incorrect variable assignment for 'sampled' key (#7120)
- Resolve crash in caused by calling
SentryFramesTracker.removeListener(_:)(#7155)
8.58.0 (stable)
9.1.1-alpha.0
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_idtospan_id(#7055)
9.1.0 (Stable)
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
SentryDsnfrom Objective-C to Swift, removing theSentryDsn.hfrom the public header files.
Features
Improvements
- Flush Logs on
WillTerminateorWillResignActiveNotifications (#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.idnot set to installationId if no user is set (#7005)