Skip to content

Commit

Permalink
fix(apple): Docs for enableMetricKitAttachments
Browse files Browse the repository at this point in the history
Add docs for enableMetricKitAttachments available on Cocoa 8.29.0 and
above.
  • Loading branch information
philipphofmann committed Jun 10, 2024
1 parent 9065326 commit a6cebc6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/platforms/apple/common/configuration/metric-kit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,23 @@ SentrySDK.start { options in
options.enableMetricKit = YES;
}];
```
You can enable `enableMetricKitAttachments` to view the raw MetricKit diagnostic payload in JSON format as an attachment on the converted event in Sentry. This feature is available on Cocoa 8.29.0 and up.
```swift {tabTitle:Swift}
import Sentry
SentrySDK.start { options in
options.dsn = "___PUBLIC_DSN___"
options.enableMetricKitAttachments = true
}
```

```objc {tabTitle:Objective-C}
@import Sentry;

[SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
options.dsn = @"___PUBLIC_DSN___";
options.enableMetricKitAttachments = YES;
}];
```

0 comments on commit a6cebc6

Please sign in to comment.