Integration
sentry
Java Version
17
Version
8.23.0
Steps to Reproduce
Use spring-boot-jakarta dependency but exclude sentry-reactor dependency in WebFlux sample. Have a @GetMapping method that throws an exception.
Expected Result
Exception captured to Sentry
We could have a SentryWebExceptionHandlerWithThreadLocalAccessor in addition to SentryWebExceptionHandler, then have SentryWebExceptionHandler not use SentryReactor. This would mimic what we do for SentryWebFilterWithThreadLocalAccessor and SentryWebFilter.
Actual Result
Caused by: java.lang.ClassNotFoundException: io.sentry.reactor.SentryReactorUtils
and
reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response
and the ClassNotFoundException is reported to Sentry instead of the real exception.
Integration
sentry
Java Version
17
Version
8.23.0
Steps to Reproduce
Use
spring-boot-jakartadependency but excludesentry-reactordependency in WebFlux sample. Have a@GetMappingmethod that throws an exception.Expected Result
Exception captured to Sentry
We could have a
SentryWebExceptionHandlerWithThreadLocalAccessorin addition toSentryWebExceptionHandler, then haveSentryWebExceptionHandlernot useSentryReactor. This would mimic what we do forSentryWebFilterWithThreadLocalAccessorandSentryWebFilter.Actual Result
Caused by: java.lang.ClassNotFoundException: io.sentry.reactor.SentryReactorUtilsand
reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE responseand the
ClassNotFoundExceptionis reported to Sentry instead of the real exception.