Repository navigation
Tip
Try the new experimental option options.experimental.enableUIUpdateLinkFramesTracking. On iOS 18, tvOS 18 and visionOS 2 and later, it tracks frames without waking up your idle app for every frame, which reduces the impact of the SDK on the performance of your app. The option is disabled by default, so set it to true to opt in.
Features
- Add experimental option
options.experimental.enableUIUpdateLinkFramesTrackingthat tracks slow and frozen frames, frames delay, and time to display on iOS 18, tvOS 18 and visionOS 2 and later with the main run loop and aUIUpdateLinkinstead of aCADisplayLink, so the SDK no longer wakes up an idle app for every frame (#9541)- The option is disabled by default.
- Spell the run ID into the call stack of a parked thread while MetricKit diagnostics are enabled, so the SDK can match a MetricKit crash, hang or memory diagnostic to the run it describes. The thread is named
io.sentry.threadcrumband stays idle; the run ID stays on the device (#9582) - Add
SentrySDK.replay.pauseTouchTracking()andSentrySDK.replay.resumeTouchTracking()to stop recording touch positions in Session Replay, for example while a PIN pad is on screen, while screenshots continue to be captured. The pause is independent ofpause()andresume(), and also applies to replays started later in the same process (#9587) - Stop sending a MetricKit crash diagnostic for a crash the crash handler already reported in the same run, so enabling
.crashinenabledDiagnosticReportsno longer shows the same crash twice (#9584) - Add
SentryLogHandler(label:logLevel:)to the SentrySwiftLog integration, which records the swift-log logger label as thelogger.nameattribute on every log (#9636)
Fixes
- Fix the build error
expected identifier; 'class' is a keyword in Objective-C++when importing the SDK through SPM into a target with Swift C++ interoperability enabled (#9669) - Skip capturing a stack trace for file I/O and Core Data operations on the main thread when the transaction on the scope has already finished and no span can be created (#9697)
- Preserve JSON null values in event extras, breadcrumb data, and other sanitized dictionaries instead of converting them to the string
"<null>"(#9729) - Restore the public headers
SentryHttpStatusCodeRange.h,SentryReplayApi.handSentrySamplingContext.has empty headers, so importing them by name, for example#import <Sentry/SentrySamplingContext.h>, compiles again. They were removed in 9.31.0 and 9.32.0 when the types moved to Swift (#9721) - Skip Objective-C descriptor conformance checks for view controllers without a custom screen-name getter, avoiding potentially slow protocol walks on the main thread (#9738)
- Reduce UIViewController tracing overhead with incremental weak-map cleanup and by skipping child-span searches when the root tracer is active (#9551)
- Map
spanenvelope items that hybrid SDKs send, such as streamed spans from sentry-dart, to thespandata category, so rate limits and client reports for them usespaninstead ofdefault(#9642) - Fix the
EXC_GUARDcrash inSentrySDK.startin apps that enable the Enhanced Security capability with additional runtime platform restrictions, by registering the Mach exception handler with the identity-protected exception behavior (#9705)- This changes the Mach exception message format for every app, not only apps with Enhanced Security. A crash handler installed after the SDK that forwards Mach exceptions to it by building the message itself must support
mach_exception_raise_identity_protected; otherwise the SDK reports the crash through its signal handler instead of its Mach exception handler.
- This changes the Mach exception message format for every app, not only apps with Enhanced Security. A crash handler installed after the SDK that forwards Mach exceptions to it by building the message itself must support
Internal
- Expose
SentrySDK.internal.profiling.currentProfilerIdto hybrid SDKs so they can link their spans to Cocoa profiles (#9712) - Apply replay tags set by hybrid SDKs through
SentrySDK.internal.replay.setTags(_:)to replay sessions started after the call, so the options event of a Flutter replay on iOS reports the Flutter masking options instead of the Cocoa defaults (#9732)