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

Add Sentry Error Tracking #2670

Merged
merged 14 commits into from
Jun 21, 2024
Merged

Add Sentry Error Tracking #2670

merged 14 commits into from
Jun 21, 2024

Conversation

breadbyte
Copy link
Member

@breadbyte breadbyte commented Feb 10, 2024

  • Added a notice that we're using Sentry when first generating the config file
  • Added a config option to disable Sentry crash logging

Currently sends information about the current .NET Runtime and the Operating System.
Here is a screenshot of all the information that is sent to Sentry whenever a crash occurs:

Very long screenshot

Screenshot_11-2-2024_4480

Currently uses my personal DSN.
Will need to change that to our DSN before merging.

@milutinke
Copy link
Member

Haven't looked in to the code, so you might have already added this.
But it would be a good idea to allow this only for binaries that we release here, because someone could modify the code and cause an error.

@ReinforceZwei
Copy link
Member

We could put the DSN into repository secret/variable and populate the DSN during build-time, just like how we populate the build info. Correspondingly, the code would need to check the DSN string before initializing Sentry SDK.

- Send the user-friendly Minecraft Version in the error logs
- Capture exceptions in more parts of the application

We now capture exceptions from the following locations:
- Protocol18 (1.8+) Packet errors
- Errors during client initialization phase (When client is about to start, session keys are NEVER sent to sentry)
The Sentry DSN will automatically be filled out on the main repository through the Github Actions build.
Update sed command
@breadbyte breadbyte marked this pull request as draft March 6, 2024 23:02
@breadbyte breadbyte marked this pull request as ready for review March 10, 2024 23:08
@breadbyte breadbyte merged commit 0855109 into MCCTeam:master Jun 21, 2024
@breadbyte breadbyte deleted the sentry branch June 21, 2024 22:41
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.

3 participants