# watchOS | Sentry

> Automatically capture errors, crashes, and performance issues in your watchOS apps with Sentry's Apple SDK.

**URL:** https://sentry.io/for/watchos/

---

**Documentation:** [https://docs.sentry.io/platforms/apple/guides/watchos/](https://docs.sentry.io/platforms/apple/guides/watchos/)

## Install

Add the Sentry SDK via Swift Package Manager. In Xcode, go to **File > Add Packages** and enter:

```
https://github.com/getsentry/sentry-cocoa.git
```

Initialize the SDK as soon as possible, such as in your `WKExtensionDelegate.applicationDidFinishLaunching` method:

```swift
import Sentry

func applicationDidFinishLaunching() {
    SentrySDK.start { options in
        options.dsn = "https://<key>@sentry.io/<project>"
        options.debug = true
        options.tracesSampleRate = 1.0
    }
}
```

See the [watchOS docs](https://docs.sentry.io/platforms/apple/guides/watchos/) for full setup options.

## Features

### watchOS Performance Monitoring

Quickly identify performance issues and view the full end-to-end distributed trace to see the exact poor-performing API call and what caused it. Measure everything from warm starts to frozen frames so you can improve watchOS performance with max efficiency, not max effort.

### Get watchOS Crash Reporting With Complete Stack Traces

Reveal hidden context in Apple's incomplete crash data by automatically symbolicating unreadable symbols. Handle Cocoa watchOS crashes with complete context using the Swift/Objective-C SDK.

### Fill In The Blanks About watchOS Crashes

See what the app was doing when the watchOS crash occurred: every user action, controller changes, and custom breadcrumbs. Record events when devices are offline or in airplane mode, then send crash reports as soon as connection is regained.

### Resolve watchOS Crashes With Better Data

Improve Cocoa error monitoring workflow with a full view of releases so you can mark errors as resolved and prioritize live issues. Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release. Add commit data to automatically suggest an owner of each watchOS crash and instantly send deploy emails.

---

*Source: [sentry.io/for/watchos/](https://sentry.io/for/watchos/)*
