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: Setup Sentry fingerprint for errors only #2357

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

taratatach
Copy link
Member

To help Sentry group similar errors together, we set the message
fingerprint ourselves with the error's name and message and the
originating logger name.

However, if we trying to send a message to Sentry without an error
(i.e. we logged a message with the sentry: true option), trying to
get its name or message will throw an error for trying to get
attributes of undefined.

Therefore, we'll set the fingerprint manually only when sending a
message related to an error.

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

@taratatach taratatach self-assigned this Oct 30, 2024
Base automatically changed from deps/upgrade-electron to master October 31, 2024 08:40
  To help Sentry group similar errors together, we set the message
  fingerprint ourselves with the error's name and message and the
  originating logger name.

  However, if we trying to send a message to Sentry without an error
  (i.e. we logged a message with the `sentry: true` option), trying to
  get its name or message will throw an error for trying to get
  attributes of `undefined`.

  Therefore, we'll set the fingerprint manually only when sending a
  message related to an error.
@taratatach taratatach force-pushed the fix/sentry-errors-fingerprint-setup branch from c93b33e to 2d781d6 Compare October 31, 2024 08:42
@taratatach taratatach merged commit 3c81e18 into master Oct 31, 2024
9 of 16 checks passed
@taratatach taratatach deleted the fix/sentry-errors-fingerprint-setup branch October 31, 2024 09:55
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.

1 participant