What's New

8.30.0

2024-06-25T13:47:09Z

Features

  • Restart replay session with mobile session (#4085)
  • Add pause and resume AppHangTracking API (#4077). You can now pause and resume app hang tracking with SentrySDK.pauseAppHangTracking() and SentrySDK.resumeAppHangTracking().
  • Add beforeSendSpan callback (#4095)

Fixes

  • storeEnvelope ends session for unhandled errors (#4073)
  • Deprecate SentryUser.segment(#4092). Please remove usages of this property. We will remove it in the next major.
  • Sentry Replay Network details should be available without Tracing (#4091)

Sentry

Official Sentry SDK for iOS / tvOS / macOS / watchOS (1).

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

Build codebeat badge codecov.io CocoaPods compadible Carthage compatible SwiftPM compatible platforms Swift Package Index Discord Chat

This SDK is written in Objective-C but also provides a nice Swift interface.

Where is the master branch?

We renamed the default branch from master to main.

Initialization

Remember to call this as early in your application life cycle as possible Ideally in applicationDidFinishLaunching in AppDelegate

import Sentry

// ....

SentrySDK.start { options in
    options.dsn = "___PUBLIC_DSN___"
    options.debug = true // Helpful to see what's going on
}    
@import Sentry;

// ....

[SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
    options.dsn = @"___PUBLIC_DSN___";
    options.debug = @YES; // Helpful to see what's going on
}];

For more information checkout the docs.

(1)limited symbolication support and no crash handling.

Blog posts

Mobile Vitals - Four Metrics Every Mobile Developer Should Care About.

How to use Sentry Attachments with Mobile Applications.

Close the Loop with User Feedback.

A Sanity Listicle for Mobile Developers.

Resources

  • Documentation
  • Discussions
  • Discord Chat
  • Stack Overflow
  • Code of Conduct
  • Twitter Follow

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Nov 06 2024 21:48:41 GMT-1000 (Hawaii-Aleutian Standard Time)