Skip to content
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

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

stefanceriu
Copy link
Member

…spans get created - they don't get reported otherwise

@stefanceriu stefanceriu requested a review from a team as a code owner July 17, 2024 11:48
@stefanceriu stefanceriu added the pr-misc for other changes label Jul 17, 2024
Copy link

github-actions bot commented Jul 17, 2024

Fails
🚫 Please provide a complete title that can be used as a changelog entry.
Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.

Generated by 🚫 Danger Swift against aafe2d5

Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM 👍

Comment on lines +114 to +119
Self.setupSentry(appSettings: appSettings)

Self.setupServiceLocator(appSettings: appSettings, appHooks: appHooks)

ServiceLocator.shared.analytics.startIfEnabled()

Copy link
Member

@pixlwave pixlwave Jul 17, 2024

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.

Copy link
Member Author

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
Copy link

sonarcloud bot commented Jul 17, 2024

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 6.94444% with 67 lines in your changes missing coverage. Please review.

Project coverage is 77.65%. Comparing base (b3e377e) to head (aafe2d5).
Report is 8 commits behind head on develop.

Files Patch % Lines
ElementX/Sources/Application/AppCoordinator.swift 0.00% 65 Missing ⚠️
...ementX/Sources/Services/Analytics/Signposter.swift 50.00% 2 Missing ⚠️
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     
Flag Coverage Δ
unittests 68.62% <6.94%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stefanceriu stefanceriu merged commit 65dd6f3 into develop Jul 18, 2024
9 of 10 checks passed
@stefanceriu stefanceriu deleted the stefan/sentry branch July 18, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-misc for other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants