sentry-java
sentry-java copied to clipboard
Support Sentry.init for lazy Spring Applications
Problem Statement
When a Spring Application is set to lazy default bean initialization (spring.main.lazy-initialization=true) then Sentry.init is never invoked.
Came up here https://github.com/getsentry/sentry-java/issues/2073
Solution Brainstorm
Add Lazy(false) to the IHub bean. Check if other beans need it as well.