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

GH-394 Add Sentry integration #808

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

GH-394 Add Sentry integration #808

wants to merge 7 commits into from

Conversation

Jakubk15
Copy link
Member

@Jakubk15 Jakubk15 commented Jul 1, 2024

Resolves #394

@Jakubk15 Jakubk15 added the 🆕 feature New feature or request label Jul 1, 2024
options.setBeforeSend((event, hint) -> {
Throwable throwable = event.getThrowable();

if (throwable != null) {
Copy link
Member

Choose a reason for hiding this comment

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

Trochę mało wydajne te streamy

Copy link
Member Author

Choose a reason for hiding this comment

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

Co proponujesz, zwykłe pętle for()?

Copy link
Member

Choose a reason for hiding this comment

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

Jakieś hashmapy sety coś takiego...

@@ -45,6 +46,7 @@ public static List<Class<?>> scanClasses(String packageToScan, ClassLoader class
return loadedClasses;
}
catch (IOException | ClassNotFoundException exception) {
Sentry.captureException(exception);
Copy link
Member

Choose a reason for hiding this comment

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

Trochę łopatologiczne Lucky jakoś globalnie kiedyś łapał błędy ale nw czy to tylko na wątki działa

Copy link
Member Author

Choose a reason for hiding this comment

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

poprawiłem indentację

Copy link
Member Author

Choose a reason for hiding this comment

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

Ale łopatologiczne jest używanie wszędzie Sentry#captureException, czy co masz na myśli? Musimy tak robić bo ja nie łapię wszystkich błędów celowo, np. tych argumentów z LC, bo przecież tam to jest wina stricte usera

Copy link
Member

Choose a reason for hiding this comment

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

Wątek w Javie ma coś takiego jak uncatched handler tyle, że musi wywalić wątek aby to złapało to część case już ogarnie... warto pomyśleć nad tym

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Sentry integration
2 participants