I posted a blog post on Sentry's blog on how to measure application performance in Swift using Sentry's custom transactions. Give it a read:
https://blog.sentry.io/2022/11/22/measuring-application-performance-in-swift-using-transactions/
https://blog.sentry.io/2022/11/22/measuring-application-performance-in-swift-using-transactions/