Sentry in spring-boot-starter-data-jpa

Hello everyone,

i’m trying to integrate sentry in my spring boot project (maven), i got it with sentry-spring but since it is using spring-boot-starter-web its not the perfect solution for me, because i don’t want to include only some logging a tomcat webserver.

I think spring is using SLF4j, so it would be nice if anyone can give me a good configuration example for that because i can’t find one in web for that issue. I don’t know why.

Thank you

kind regards

sentry-spring integration works with Spring MVC. If you don’t want Spring MVC but would like to pass your error logs to Sentry I recommend choosing sentry-logback integration and configuring appender in logback-spring.xml file (see how to do it in Spring Boot reference).