Skip to content

Commit b356998

Browse files
fix(apple): Docs for enableMetricKitRawPayload (#10334)
* fix(apple): Docs for enableMetricKitAttachments Add docs for enableMetricKitAttachments available on Cocoa 8.29.0 and above. * rename to enableMetricKitRawPayload * Update docs/platforms/apple/common/configuration/metric-kit.mdx Co-authored-by: Karl Heinz Struggl <[email protected]> * Update docs/platforms/apple/common/configuration/metric-kit.mdx Co-authored-by: Karl Heinz Struggl <[email protected]> --------- Co-authored-by: Karl Heinz Struggl <[email protected]>
1 parent 68cadb8 commit b356998

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/platforms/apple/common/configuration/metric-kit.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,25 @@ SentrySDK.start { options in
3434
options.enableMetricKit = YES;
3535
}];
3636
```
37+
38+
You can enable `enableMetricKitRawPayload` 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.
39+
40+
```swift {tabTitle:Swift}
41+
import Sentry
42+
43+
SentrySDK.start { options in
44+
options.dsn = "___PUBLIC_DSN___"
45+
options.enableMetricKit = true
46+
options.enableMetricKitRawPayload = true
47+
}
48+
```
49+
50+
```objc {tabTitle:Objective-C}
51+
@import Sentry;
52+
53+
[SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
54+
options.dsn = @"___PUBLIC_DSN___";
55+
options.enableMetricKit = YES;
56+
options.enableMetricKitRawPayload = YES;
57+
}];
58+
```

0 commit comments

Comments
 (0)