Hi everybody!
I’m new to Sentry framework and are deploying my first app on production with Sentry tracking errors.
My app is a Java SpringBoot Service, and following these instructions
(Java | Sentry Documentation)
1° I added these dependency to pom.xml (Maven build)
io.sentry sentry-spring 1.7.23
2° Create that Configutation Class
@Configuration
public class SentryConfig {
@Bean
public HandlerExceptionResolver sentryExceptionResolver() {
return new io.sentry.spring.SentryExceptionResolver();
}
}
And it’s working for controller calls well, as when front-end call a path of my service and something break throwing a Excpetion, Sentry automatic capture that.
However, i need some configuration to internal Exception (As a Scheduled job with Quartz) also be captured by Sentry automatic, someone has any ideia of how to do that?
What i did for these scenario today is a manually Capture, using Sentry static API i call in EVERY try{}catch{} the Sentry.capture(Exception).
Hoped has explained clear rs
Tks! o/