Metric Kit

Once enabled, this feature subscribes to MetricKit's MXDiagnosticPayload data, converts it to events, and sends it to Sentry. This feature is available on Cocoa 8.0.0 and up.

The MetricKit integration subscribes to:

The SDK supports this feature from iOS 15 and up and macOS 12 and up because in these versions, MetricKit delivers diagnostic reports immediately, which allows the Sentry SDK to apply current data from the scope.

This is an experimental feature requiring opt-in, and can be enabled by setting the enableMetricKit option to true:

import Sentry

SentrySDK.start { options in
    options.dsn = ""
    options.enableMetricKit = true
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
Suggest an edit to this page   |  Contribute to Docs   |  

Report a Problem

🎉 Thank you for your feedback! 🙌
Report a problem