Wrong app context view names for screen load transactions
philipphofmann opened this issue · 0 comments
philipphofmann commented
Platform
iOS
Environment
Develop, TestFlight
Installed
Manually
Version
8.25.2
Did it work on previous versions?
Maybe
Steps to Reproduce
- Open iOS-Swift sample app
- Check screen load transaction in Sentry
Expected Result
The view_names in the app context should match the transaction name.
Actual Result
The view_names sometimes is UITabBarController
or something different. Checkout this sample transaction in Sentry
I guess this is because we add the view_names to the transaction in the client
sentry-cocoa/Sources/Sentry/SentryClient.m
Lines 870 to 881 in e072ad1
As the SDK captures the transaction on a background thread, the app navigates to a new screen after it captures the auto-generated screen load transaction.
sentry-cocoa/Sources/Sentry/SentryHub.m
Lines 291 to 300 in e072ad1
Are you willing to submit a PR?
No response