sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Support Sentry.init for lazy Spring Applications

Open adinauer opened this issue 2 years ago • 0 comments

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.

adinauer avatar Jun 07 '22 08:06 adinauer