Metric Kit
This feature is currently in Alpha. Alpha features are still in-progress and may have bugs. We recognize the irony.
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
:
Copied
import Sentry
SentrySDK.start { options in
options.dsn = "https://examplePublicKey@o0.ingest.sentry.io/0"
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").
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").
- Package:
- cocoapods:sentry-cocoa
- Version:
- 8.13.0
- Repository:
- https://github.com/getsentry/sentry-cocoa