---
title: "MetricKit"
description: "Learn how the Sentry Apple SDK sends the diagnostics and metrics Apple's MetricKit collects on your users' devices to Sentry."
url: https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/
---

# Set Up MetricKit for iOS

[MetricKit](https://developer.apple.com/documentation/metrickit) is an Apple service that runs in the operating system and provides diagnostic and metric reports about your app on your users' devices. The MetricKit integration converts two kinds of MetricKit data:

* **Diagnostic reports**, such as app hangs, CPU and disk write exceptions, or slow app launches, become Sentry error events. Learn more in [App Hangs and Other Diagnostic Reports](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/diagnostic-reports.md).
* **Metric reports**, such as CPU time, network transfer, memory and app exit counts, become [Application Metrics](https://docs.sentry.io/platforms/apple/guides/ios/metrics.md). Learn more in [Metric Reports](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/metric-reports.md).

The integration is disabled by default, and you enable diagnostic reports and metric reports separately.

## [Prerequisites](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit.md#prerequisites)

* SDK version 8.14.0 or later for hang, CPU exception and disk write exception diagnostic reports.
* SDK version 9.32.0 or later for app launch, crash and memory exception diagnostic reports, and for metric reports. Some of these diagnostic reports are only available on newer OS versions, which are listed in [Choose Diagnostic Reports](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/diagnostic-reports.md#choose-diagnostic-reports).
* iOS 15 and later, macOS 12 and later, or visionOS. MetricKit isn't available on tvOS and watchOS.

## [Delayed Data](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit.md#delayed-data)

MetricKit reports data after it was recorded. It can deliver a diagnostic report while the app that recorded it is still running, or on a later launch, and it delivers metric payloads at most once a day. The SDK sends this data with the app and OS versions it was recorded with, instead of the versions running when MetricKit delivered it. Learn more in Apple's description of the [MetricKit reporting model](https://developer.apple.com/documentation/metrickit/monitoring-app-performance-with-metrickit#Understand-the-reporting-model).

* #### [App Hangs and Other Diagnostic Reports](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/diagnostic-reports.md)

  Capture MetricKit diagnostics, such as app hangs, CPU and disk write exceptions, as Sentry errors and investigate app hangs with symbolicated flame graph attachments.

* #### [Metric Reports](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/metric-reports.md)

  Send the metrics MetricKit collects, such as CPU time, memory, launch times and app exit counts, as Application Metrics.

## Pages in this section

- [Diagnostic Reports](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/diagnostic-reports.md)
- [Metric Reports](https://docs.sentry.io/platforms/apple/guides/ios/metric-kit/metric-reports.md)

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
