Skip to content

Releases

9.35.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 16 Nov 18:45

Features

  • Add options.webViewTracing to connect the traces of every WKWebView automatically, keeping the trace current across page loads (#9538)
    • Expose options.webViewTracing through the SentryObjC SDK as SentryObjCOptions.webViewTracing (#9539)
    • See the WebView docs for details.
  • Add the launchTimeToFirstDraw, launchResumeTime, launchOptimizedTimeToFirstDraw, launchExtended, responsivenessHangTime and cellularConditionTime metric reports, which send MetricKit histograms as distributions with one value per sample, up to about 100 values per histogram (#9493)
  • Report the low power mode and TestFlight state that MetricKit records with a diagnostic of a previous app run as device.low_power_mode and an app.build_type of test, and take app.app_identifier from the diagnostic instead of the running app (#9523)

Fixes

  • Read attachAllThreads, enableDataSwizzling and enableStandaloneAppStartTracing from the options dictionary that hybrid SDKs pass to the native SDK (#9586)
  • Preserve a fallback stack trace and the crashing thread when the experimental C++ exception monitor (V2) misses a throw hook (#9612)

Improvements

  • Match Session Replay network detail allow and deny URL patterns once per URL session task and reuse the decision for later state changes and response capture, instead of matching on every call (#9316)

9.30.3 (Stable)

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 16 Nov 16:14

Important

This is a re-release of the Stable version 9.30.2 with the new signing certificate.
See #9645 for more information

9.29.3 (Stable)

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 16 Nov 16:14

Important

This is a re-release of the Stable version 9.29.2 with the new signing certificate.
See #9645 for more information

9.34.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 12 Nov 07:26

Features

  • Add opt-in options.enableScopePersistence to retain explicitly supplied user information across app launches. Storage and restoration are asynchronous, and independent of watchdog tracking and automatic user collection settings (#9470)
  • Give every run of the app an ID and store it in crash reports and the app state, so the SDK can match events from the crash handler, the watchdog termination integration and MetricKit that describe the same run. The ID is only used on the device and is not sent to Sentry (#9578)

Fixes

  • Prevent a crash in file I/O tracing when NSData is read from a nil URL, for example by MessageUI when sharing to Mail (#9535)
  • Skip stored crash reports with a top-level JSON array instead of crashing during SDK startup (#9590)

9.33.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 04 Nov 19:31

Breaking Changes

  • Add the animationTotalHitchTime, animationTotalAnimationTime, metalFramesPerSecond, metalFrameCount and metalActiveDrawingDuration cases to the experimental SentryMetricKit.MetricReport enum, so exhaustive switch statements over it need to handle them. On iOS and macOS 27 and later, animationScrollHitchTimeRatio is no longer sent because MetricKit only reports the hitch time of all animations (#9476)

Features

  • Expose options.experimental.metrickit.enabledMetricReports through the SentryObjC SDK as the SentryObjCMetricKitMetricReport bitmask and through the enabledMetricReports key of the metrickit options dictionary, which also accepts "all" (#9490)
  • Receive MetricKit metrics through MetricManager on iOS and macOS 27 and later with the same names, types and units as on earlier OS versions, and add the animationTotalHitchTime, animationTotalAnimationTime, metalFramesPerSecond, metalFrameCount and metalActiveDrawingDuration metric reports that only MetricManager provides, also available through the SentryObjCMetricKitMetricReport bitmask (#9476)
  • Connect traces of web content in a WKWebView with the app's trace. Call SentryWebViewTracing.addTracePropagation(to:options:) with a WKWebView, WKWebViewConfiguration, WKUserContentController, or SwiftUI WebPage.Configuration to inject the current trace as sentry-trace and baggage meta tags before page scripts run, so @sentry/browser in the page continues the trace on pageload. Only pages on the hosts in SentryWebViewTracingOptions.allowedHosts receive the trace (#9474)
    • Expose WebView trace propagation through the SentryObjC SDK as SentryObjCWebViewTracing and SentryObjCWebViewTracingOptions (#9488)
    • See the WebView docs for details.

Fixes

  • Report the tvOS OS name as tvOS in profiles instead of occasionally reporting Apple TVOS (#9497)
  • Fix trace-lifecycle profiling getting stuck after backgrounding when a root transaction remains active or is abandoned. Parented transactions no longer start or keep the profiler running (#9481)
  • Prevent sampled backtraces from being dropped when continuous profiling starts a new chunk (#9485)
  • Prevent stale profiling callbacks from affecting restarted profilers or routing queued chunks to a replacement SDK client (#9491)
  • Prevent stale trace-profiler timers from stopping replacement profiles or shortening their timeout (#9492)
  • Fix app start transactions from hybrid SDKs such as React Native being dropped for prewarmed app starts. SentrySDK.internal.appStart.measurementWithSpans added the Pre Runtime Init and Runtime init to Pre Main initializers spans only for prewarmed app starts, where Pre Runtime Init ended before it started, and left them out of all other app starts (#9473)
  • Prevent SentryCrash from deadlocking while handling uncaught C++ exceptions, and keep concurrent throws from overwriting another thread's captured stack trace (#9531)
  • Count every batched log and metric in client reports when an envelope is rate limited, dropped from the cache, or fails to send, instead of counting one per envelope item (#9530)
  • Preserve profiling metrics across chunk rollover and avoid recording a finished trace's metrics on its replacement profiler (#9500)
  • Synchronize profiling energy-counter readings and prevent invalid energy spikes when cumulative counters decrease (#9517)

9.32.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 29 Oct 04:29

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)

9.31.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 21 Oct 20:10

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)
    This feature is not fully available yet and under active development. Please reach out if you want early access.

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.

9.30.2

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 14 Oct 16:37

Fixes

  • Fix a data race on the span end timestamp that could crash in SentryTracer.trimEndTimestamp when a child span finishes on another thread while its transaction finishes (#9305)
  • Validate feedback payloads before transport and align the managed form's message counter and errors with the cross-SDK input validation specification (#8973)
  • Read the initial UIApplication.applicationState asynchronously on the main queue when the SDK's dependency container is first accessed off the main thread, instead of blocking the calling thread while waiting for the main thread during app launch (#9304)
  • Prevent crash report buffer overflows when flushing pending data fails (#9317)
  • Exempt symbol images from Session Replay masking using the public isSymbolImage API without inspecting their image assets (#9335)
  • Fix an EXC_BAD_ACCESS crash while reading the cellular network technology on iOS. The SDK now copies the value from CoreTelephony under the lock that CoreTelephony uses to change it (#9332)
  • Avoid crash-handler deadlocks caused by SDK debug logging or NSException backtrace memory management while other threads are suspended (#9324)
    • Prepare NSException backtraces before suspending other threads, and resume them before releasing the backtrace buffer.
    • NSException-monitor debug and warning diagnostics now use the async-safe logger's compile-time threshold (ERROR by default), so runtime debug options no longer enable them.
  • Prevent Session Replay image redaction from changing archived images' rendered size while preserving masking exemptions for bundled images and system symbols (#9344)
  • Fix an EXC_BAD_ACCESS crash in cow_cleanup when a URLSessionTask changes state while another thread writes protocol properties into its request. The network tracker now reads the task's requests without copying them to Swift URLRequest values (#9343)
  • Prevent crash report buffer overflows and file descriptor leaks when the report writer receives file descriptor zero (#9341)

9.30.1 (Stable)

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 07 Oct 14:01

Fixes

  • Fix app freeze during crash handling when attaching a crash-time screenshot or view hierarchy with a Swift (MainActor) scene delegate under UIScene (#9282)
  • Parse crash reports whose NSException reason exceeds the previous 150KB JSON string buffer, and truncate the exception value to 512 characters so the event stays within the 1MiB ingestion limit (#9256)
  • Report MetricKit events with the app and OS versions the diagnostic was recorded on instead of the versions running when MetricKit delivered it. The app context of these events only carries the identifier, version and build, and the OS context only the name, version and build, because the other attributes of the running app and device are unknown for the diagnostic (#9266)
  • Avoid evaluating Swift SDK debug, info, warning, and error log messages when logging is disabled or filtered by the diagnostic level (#9283)
  • Remove SDK frames from current-thread stacktraces when the SDK is loaded from the SentryObjC framework or dylib (#9286)

9.30.0 (Stable)

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 30 Sep 15:56

Features

  • Update option stability without changing defaults (#9134, #9175):
    • enableUnhandledCPPExceptionsV2 remains non-deprecated under options.experimental in v9, disabled by default, with dictionary-based initialization support.
    • enablePersistingTracesWhenCrashing is now stable and remains disabled by default.
    • attachViewHierarchy is now stable and remains disabled by default.
    • enableTimeToFullDisplayTracing is now stable and remains disabled by default because applications must explicitly call SentrySDK.reportFullyDisplayed().
    • swiftAsyncStacktraces is now stable and remains disabled by default.
    • enableGraphQLOperationTracking is now stable and remains disabled by default.
    • enableFileManagerSwizzling is now stable, remains disabled by default, and supports dictionary-based initialization.
  • Add connection_type to the device context of events, which reports wifi, ethernet, cellular, or none (#9097).
    On iOS, cellular connections additionally report the network technology in connection_effective_type, for example 4g or 5g.

Fixes

  • Keep standalone @objc extensions in static builds by adding referenced dummy NSObject subclasses, and lint for this with a SwiftSyntax SwiftLint extra rule (#9160)
  • Send envelopes captured during a connectivity-triggered cache drain without waiting for another trigger (#9171)
  • Preserve full resolution when masking feedback, error, and crash screenshots, including screenshots captured through the React Native bridge, without changing Session Replay resolution or redactions (#9179)
  • Compact raw MetricKit diagnostic attachments to reduce their upload size and attachment quota usage (#9183)