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

fix: Improve sentry error logging #1394

Merged
merged 5 commits into from
Apr 24, 2024
Merged

Conversation

PhilippeWeidmann
Copy link
Member

@PhilippeWeidmann PhilippeWeidmann commented Apr 24, 2024

Easier to read commit by commit.

shouldSendToSentry:

I extracted logic to choose whether we should send the events or not -> shouldSendToSentry
Errors are now sent only if:

  • They are not cancel errors (Native or wrapped in Alamofire)
  • They are not network errors

MailError encodable

MailErrors are now encodable to improve their readability in Sentry

Deprecated symbols

Some deprecated Sentry calls where replaced

Silenced warnings

Warnings regarding casting of some errors in Sentry's context are now handled correctly

Copy link

sonarcloud bot commented Apr 24, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

It was easy to review commit by commit. All good. Thanks 👍

@PhilippeWeidmann PhilippeWeidmann merged commit 20e5a8b into master Apr 24, 2024
9 checks passed
@PhilippeWeidmann PhilippeWeidmann deleted the improve-sentry-errors branch April 24, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants