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

feat: add sentry for error logging and information. #32

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

grvgoel81
Copy link
Contributor

Motivation and Context

  • Add sentry for error logging and capturing useful information.

Jira Link: https://toruslabs.atlassian.net/browse/PD-3897

Description

  • Add sentry for error logging and capturing useful information.

How has this been tested?

  • By using test exceptions log.

Screenshots (if appropriate):

Screenshot 2024-09-16 at 12 50 41 PM

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@@ -122,7 +125,7 @@ public static String[] getPublicKeyCoords(@NotNull String pubKey) throws TorusUt
if (publicKeyUnprefixed.length() <= 128) {
Common.padLeft(publicKeyUnprefixed, '0', 128);
} else {
throw new TorusUtilError("Invalid public key size");
throw new TorusUtilError("Invalid public key size", TorusUtils.getClientId());
Copy link
Contributor

@metalurgical metalurgical Sep 16, 2024

Choose a reason for hiding this comment

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

Perhaps you can promote this to a full error, then it can sit will all the other errors. Will be easy to keep track of then, similary for the others like this.

@metalurgical
Copy link
Contributor

metalurgical commented Sep 16, 2024

@grvgoel81 Did you check that we can keep it the same way as here for swift as well?

@grvgoel81
Copy link
Contributor Author

@grvgoel81 Did you check that we can keep it the same way as here for swift as well?

Yes it is. Reference: torusresearch/torus-utils-swift#107

this.message = message;
}

private final String message;
Copy link
Contributor

Choose a reason for hiding this comment

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

This appears to be unused and can be removed, not so?

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.

2 participants