getsentry / getsentry/sentry-java

`ClassNotFoundException` for `SentryReactorUtils` when excluding the `sentry-reactor` dependency

オープン
#4,789 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Bug Errors Java
主要言語
Kotlin
スター
1.4k
フォーク
478
平均マージ
2日 23時間
マージ済み PR(30日)
67

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。