-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify how we setup Sentry to make sure it's configured before any … #3053
Conversation
Generated by 🚫 Danger Swift against aafe2d5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, LGTM 👍
Self.setupSentry(appSettings: appSettings) | ||
|
||
Self.setupServiceLocator(appSettings: appSettings, appHooks: appHooks) | ||
|
||
ServiceLocator.shared.analytics.startIfEnabled() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to get rid of the service locator's singleton at some point. E.g. looking at the UserSessionStore it references it and whilst that particular method shouldn't be called before this is run it would still be nice to have more compile time safety.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I agree, I didn't particularly enjoy moving these methods around.
…spans get created - they don't get reported otherwise
e316453
to
aafe2d5
Compare
Quality Gate passedIssues Measures |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3053 +/- ##
===========================================
- Coverage 77.93% 77.65% -0.28%
===========================================
Files 695 695
Lines 53997 54208 +211
===========================================
+ Hits 42080 42095 +15
- Misses 11917 12113 +196
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…spans get created - they don't get reported otherwise