CloudKit client usage should be attributed to app for MetricKit network metrics

In the past I ran into issues where the CloudKit client SDK was not attributing network usage in MetricKit. Since MetricKit got a major update this year I’d like to make sure usage goes here agains the app.

I would expect transfer metrics to also count for CKSyncEngine, or the CloudKit config for core/swift data too.

Is this assumption correct?

FB12673917 (CloudKit / MetricKit: CloudKit queries are not counting towards network transfer metrics in MetricKit - WWDC23 lab, possible missing URLSession 'attributedBundleIdentifier' not being set)

Answered by Frameworks Engineer in 890814022

I'm not fully familiar with the MetricKit updates, but CloudKit and the CKSyncEngine do attribute network transfers to the app so yes I would expect these transfers to count towards the app.

I'm not fully familiar with the MetricKit updates, but CloudKit and the CKSyncEngine do attribute network transfers to the app so yes I would expect these transfers to count towards the app.

CloudKit client usage should be attributed to app for MetricKit network metrics
 
 
Q