-
-
Notifications
You must be signed in to change notification settings - Fork 441
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 Annotation SentryCaptureException for org.springframework.web.bind.annotation.ExceptionHandler #2764
Conversation
…d.annotation.ExceptionHandler
Thanks for the PR @xeromank. Will try to give this a review soon. |
I've just given this a pass, fixed some config and added tests. Before duplicating this into the non jakarta modules for Spring 5 and Spring Boot 2 I'd like to discuss some things internally:
|
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
Yes
Opt-out as this may be causing issues GraalVM (see #2742)
Not for now. Can always come back later and revisit.
Not for now. Can always come back later and revisit. Next step would be to copy changes over to |
Yes
No. unnecessary
No. as you expected
To be honest, I'm not sure about this part. But I think this will be convenient. |
I checked PR(#2946). Thanks!! |
Hello @xeromank the |
Hello @adinauer. thanks for explaining. |
@xeromank well it does capture, but not errors. It captures a check-in for a CRON job. Here's some docs on the product: https://docs.sentry.io/product/crons/ I'm thinking whether we wanna reserve the name |
@adinauer |
Will give this another pass and change some things later this week hopefully. |
@adinauer thank you. I'll be keeping an eye on the release history. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed naming of the annotation to @SentryCaptureExceptionParameter
, moved it into a different package, added an opt-out flag and duplicated changes into Spring Boot 2. Thanks again for the PR @xeromank
📜 Description
Add Annotation SentryCaptureException for org.springframework.web.bind.annotation.ExceptionHandler
💡 Motivation and Context
It was inconvenient to use Sentry.captureException(Exception e) in the @ExceptionHandler of @ControllerAdvice, so that part was annotated. In the process, since the company does not have a private repository, a Pull Request is made.
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps