getsentry / getsentry/sentry-java
`ClassNotFoundException` for `SentryReactorUtils` when excluding the `sentry-reactor` dependency
- Ngôn ngữ chính
- Kotlin
- Star
- 1.4k
- Fork
- 478
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 69
Mô tả
### 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the spring-boot-jakarta WebFlux sample and reproduce the failure after excluding sentry-reactor. Compare SentryWebExceptionHandler with SentryWebFilter and SentryWebFilterWithThreadLocalAccessor; done means the real exception is captured without a SentryReactorUtils ClassNotFoundException.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, spring-boot
- Lĩnh vực
- backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100